[LLVMbugs] [Bug 12642] New: Crash on codegen, only with C++11
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Apr 24 00:01:01 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12642
Bug #: 12642
Summary: Crash on codegen, only with C++11
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++11
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chandlerc at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu,
richard-llvm at metafoo.co.uk
Classification: Unclassified
% cat x.cc
namespace N {
struct S { };
}
namespace N {
S s_arr[] = { };
S *s_arr_end = s_arr + sizeof 0;
}
% ./bin/clang++ -O2 -o /dev/null -c x.cc
<no problem>
% ./bin/clang++ -O2 -o /dev/null -c x.cc -std=c++11
clang-3.1: ../lib/Target/TargetData.cpp:81: unsigned int
llvm::StructLayout::getElementContainingOffset(uint64_t) const: Assertion `SI
!= &MemberOffsets[0] && "Offset not in structure type!"' failed.
--
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