| 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. | ||
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.
True, thanks for the feedback! |
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"