http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46466
Summary: [C++0X] ICE when using constexpr with
-fno-elide-constructors
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
Compiling
struct S { bool b; };
constexpr S f() { return S{true}; }
static_assert(f().b, "");
with
g++ -std=c++0x -fno-elide-constructors
results in
t.cpp:3:26: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Omitting -fno-elide-constructors makes the problem go away.
I'm using GCC svn r166710.