Bug 294879

Summary: invalid use of 'using namespace' in class-scope accepted by kdevelop
Product: [Applications] kdevelop Reporter: flo.ruijt
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, sumeettulsani1
Priority: NOR    
Version First Reported In: git master   
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 flo.ruijt 2012-02-26 18:37:33 UTC
Version:           git master (using KDE 4.7.4) 
OS:                Linux

code such as

namespace B{}
struct A{
 using namespace B;
};

is accepted by the parser, which is rejected by gcc.
it would be nice to report to the user that this is an invalid construct.

Reproducible: Always

Steps to Reproduce:
1) enter code
2) profit!

Actual Results:  
highlighted source

Expected Results:  
red underlining and a reported problem  like "using namespace X not valid in class scope"
Comment 1 Sumeet Tulsani 2016-04-17 22:29:35 UTC
Created attachment 98436 [details]
The bug has already been resolved.

The bug has already been resolved as shown in the snapshot. I am using Ubuntu 15.10 to test the same.
Comment 2 Kevin Funk 2016-04-18 07:44:05 UTC
True, thanks for the feedback!