[LLVMbugs] [Bug 12086] New: Nested global initializer lists silently miscompile
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Feb 26 05:54:35 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12086
Bug #: 12086
Summary: Nested global initializer lists silently miscompile
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sebastian.redl at getdesigned.at
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
std::initializer_list<std::initializer_list<int>> globalInitList3 = {
{1, 2}, {3, 4}, {5, 6}
};
The above creates a global array for the outer initializer list, but the inner
initializer lists point to arrays local to the global constructor.
--
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