Bug 207548

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.

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.