http://llvm.org/bugs/show_bug.cgi?id=10289
Summary: Clang incorrectly takes an unnamed bitfield as a
member
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
The following is valid C++03 code, as far as I can see
struct A {
private:
int : 0;
};
A a = { };
"A" is an aggregate, but clang complains
main1.cpp:6:3: error: non-aggregate type 'A' cannot be initialized with an
initializer list
A a = { };
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs