http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47202
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |compile-time-hog Status|UNCONFIRMED |NEW Last reconfirmed| |2011-12-31 Ever Confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-31 00:47:43 UTC --- Confirmed. With a slight change: Matrix (octave_idx_type r, octave_idx_type c, double val):MArray2 (r, val) to: Matrix (octave_idx_type r, octave_idx_type c, double val):MArray2<double> (r, val) GCC 4.4.5 (and 4.3.5 with even more changes) gave the following ICE: t.cc:248: internal compiler error: in force_constant_size, at gimplify.c:812 Here is a reduced testcase which shows the issue and does not give an ICE for 4.4 and below but rather an error: template <class R> struct norm_accumulator_2 { R scl; }; template <class R> R vector_norm (R) { vector_norm (norm_accumulator_2 <R> ()); } double xnorm (double p) { vector_norm (p); }