The following invalid code snippet triggers an ICE since GCC 4.2.0: =============================== template<int> struct A { struct {} : 2; };
struct B : A<0> {}; =============================== bug.cc: In instantiation of 'A<0>': bug.cc:6: instantiated from here bug.cc:3: error: bit-field 'A<0>::<anonymous struct> A<0>::<anonymous>' with non-integral type bug.cc:6: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] The bug is related to PR33840. -- Summary: [4.2/4.3 regression] ICE with non-integral bit-field Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33841