The following valid code snippet causes a segfault on mainline: =================================== template<int> struct A { static int const i = 1; };
template<int N> struct B { typedef int (*p)[A<N>::i]; }; =================================== According to Phil's regression hunter we have: : Search converges between 2004-05-11-trunk (#454) and 2004-05-14-trunk (#455). So this was probably introduced by the tree-ssa merge. -- Summary: [4.0 regression] ICE with array type Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: critical 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=18121