http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46873
Summary: [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5489 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz ---------- testcase.C ---------- struct S { int i:1; }; struct T { const S s; constexpr T (S a = S ()) : s (a) { } }; T t; -------------------------------- I don't know if the code is valid, but the original code was (unless there is invalid code in system headers). Compiler output: $ gcc -std=c++0x testcase.C gcc -std=c++0x testcase.C testcase.C: In constructor 'constexpr T::T(S)': testcase.C:9:38: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5489 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r167621 - crash