[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 294879] New: invalid use of 'using namespace' in class-scope accepted by kdevelop
From: <flo.ruijt () gmail ! com>
Date: 2012-02-26 18:37:34
Message-ID: bug-294879-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=294879
Summary: invalid use of 'using namespace' in class-scope
accepted by kdevelop
Product: kdevelop
Version: git master
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: cpp-parser
AssignedTo: kdevelop-bugs@kdevelop.org
ReportedBy: flo.ruijt@gmail.com
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"
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic