------- Comment #6 from dodji at gcc dot gnu dot org 2008-08-13 15:42 ------- Created an attachment (id=16066) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16066&action=view) first fix candidate
This patch is an obvious fix to the ICE. Now the compiler reports the following (not nice) error: crash79.C: In instantiation of 'a<int>': crash79.C:16: instantiated from here crash79.C:8:< error: 'template<class> class C' is not a template crash79.C:8: error: '<type error>' is not a valid type for a template constant parameter crash79.C:8: error: 'template<class> class C' is not a template crash79.C:8: error: '<type error>' is not a valid type for a template constant parameter We could try and fix this to make the compiler display a nicer error. In the mean time, if this fix is okay to fix the ICE only, I could try to submit to gcc-patches. Comment anyone ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35405