http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51318
Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |ice-on-valid-code Last reconfirmed| |2011-11-29 CC| |reichelt at gcc dot gnu.org Ever Confirmed|0 |1 Target Milestone|--- |4.7.0 --- Comment #1 from Volker Reichelt <reichelt at gcc dot gnu.org> 2011-11-29 22:07:38 UTC --- Confirmed. Even simpler testcase: ================================================= enum { e0, e1 }; template<bool B, int = B ? e0 : e1> struct A {}; template<typename T> struct B { A<T::X> a; }; =================================================