The following code snippet triggers an ICE since at least GCC 2.95.3: =================================================== template<int> struct A {};
template<int N> A<sizeof(new int[N][N])> foo(); void bar() { foo<1>(); } =================================================== bug.cc: In function 'void bar()': bug.cc:7: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] -- Summary: ICE with new in template parameter Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, 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=35240