The following "invalid" (well valid if we say that VLA is a GCC extension) ICE in fold_convert: template<typename T> void foo(T t) { int f[t]; }
Also we don't reject this with -pedantic in 2.95.3-3.4.0 either so that is not a regression. There might be missing a processing_template somewhere. -- Summary: [4.0/4.1 Regression] ICEing with VLA in template that is type dependent Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20241