https://bugs.llvm.org/show_bug.cgi?id=41192
Bug ID: 41192
Summary: clang can't parse a global-namespace-qualfiied
qualified-id after a type definition
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Keywords: compile-fail
Severity: enhancement
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
I believe this testcase is valid:
struct A;
struct B { static A a; };
struct A {} ::B::a;
Clang rejects this; it's apparently surprised to see a '::' appearing after a
class definition and incorrectly believes a semicolon was missing.
Interestingly, GCC rejects this too, in the same way. ICC and MSVC accept.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs