| Summary: | kdevelop doesn't recognize local C++ namespace aliases | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | pmidden |
| Component: | Language Support: CPP (old) | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | david.nolden.kde, inciner, sumeettulsani1 |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 5.0.0 | |
| Sentry Crash Report: | |||
| Attachments: | The bug has already been Resolved. | ||
can confirm this SVN commit 1116029 by zwabel: Add a test for bug 207548 CCBUG: 207548 M +22 -0 test_duchain.cpp M +1 -0 test_duchain.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1116029 Created attachment 98693 [details]
The bug has already been Resolved.
As shown in the screenshot the following bug has already been resolved.
@Sumeet: Please be very careful about what these bug reports are about. The bug report is about KDevelop not recognizing the local namespace alias in its C++ support (i.e. in the code editor). Your screenshot does not show this particular issue being fixed or not. I just checked myself: KDevelop 5 correctly recognizes 'qux' as a namespace alias, no errors generated. So this issue is fixed. |
Version: (using Devel) Compiler: gcc (Gentoo 4.4.1) 4.4.1 OS: Linux Installed from: Compiled sources Since the example is extremely short, I'll paste it here: namespace foo { void baz() {} } int main() { namespace qux = foo; foo::baz(); qux::baz(); } This code will compile just fine with g++ (-Wall -Wextra -ansi -pedantic). kdevelop, however, outputs: "declaration not found: qux::baz".