The following valid code snippet causes an ICE when compiled with mainline:
============================== template<int> struct A { A(); }; const A<0> x[] = { A<0>() }; ============================== bug.cc:7: internal compiler error: in set_mem_attributes_minus_bitpos, at emit-rtl.c:1539 Please submit a full bug report, [etc.] This is a relitively new regression (the compiler from 2005-02-16works fine). -- Summary: [4.0 regression] ICE initializing const array Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, monitored Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20073