Bug 207548 - kdevelop doesn't recognize local C++ namespace aliases
Summary: kdevelop doesn't recognize local C++ namespace aliases
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-16 10:33 UTC by pmidden
Modified: 2016-12-13 08:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.0.0
Sentry Crash Report:


Attachments
The bug has already been Resolved. (526.36 KB, image/png)
2016-04-30 06:03 UTC, Sumeet Tulsani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pmidden 2009-09-16 10:33:04 UTC
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".
Comment 1 Milian Wolff 2010-01-05 01:35:16 UTC
can confirm this
Comment 2 David Nolden 2010-04-18 15:02:34 UTC
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
Comment 3 Sumeet Tulsani 2016-04-30 06:03:16 UTC
Created attachment 98693 [details]
The bug has already been Resolved.

As shown in the screenshot the following bug has already been resolved.
Comment 4 Kevin Funk 2016-05-01 08:58:35 UTC
@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.