http://llvm.org/bugs/show_bug.cgi?id=10132
Summary: clang c++ missing error on union with multiple members
initialized
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Testcase:
union U { int a, b; U() : a(10),b(20) {} };
clang accepts this. gcc gives:
<stdin>: In constructor āU::U()ā:
<stdin>:1: error: initializations for multiple members of āUā
--
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