[LLVMbugs] [Bug 9996] New: clang allows multiple members to be initialized in a union constructor
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon May 23 17:31:58 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9996
Summary: clang allows multiple members to be initialized in a
union constructor
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
clang accepts this ill-formed code:
union U {
int a;
int b;
U() : a(0), b(0) {}
};
--
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.
More information about the llvm-bugs
mailing list