http://llvm.org/bugs/show_bug.cgi?id=13737
Bug #: 13737
Summary: MS compatibility: reference members are allowed in
unions
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
vc10 compiles the following without errors, even when language extensions are
disabled.
union X {
int & a;
};
Clang should allow this construct as well when in -fms-compatibility mode.
Note that the type X can't be instantiated, but you can reinterpret_cast a
pointer to `X*`.
--
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