[LLVMbugs] [Bug 13737] New: MS compatibility: reference members are allowed in unions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Aug 31 06:51:43 PDT 2012
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: unassignedclangbugs at nondot.org
ReportedBy: avakar at ratatanek.cz
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list