The following invalid testacse triggers an ICE since at least GCC 2.95.3: ================================ struct A; template<int> struct A {}; A a(0); ================================ bug.cc:2: error: 'A' is not a template type bug.cc:4: internal compiler error: in store_init_value, at cp/typeck2.c:593 Please submit a full bug report, [etc.]
Confirmed.
Fixed on mainline by Lee's patch for PR26938.