Error in 971122 i686-pc-linux-gnu

Jason Merrill jason@cygnus.com
Fri Nov 28 01:30:00 GMT 1997


>>>>> Mark Mitchell <mmitchell@usa.net> writes:

>   I wonder if the implicit typename stuff should be disabled for the
> release.  There seem to be a lot of internal errors being reported in
> cases where the users should have used 'typename'.

Ross> ----------------------------------------------------------------------
Ross> template <class X> int foo<X> (X a) { X::A b; // = a; }
Ross> ----------------------------------------------------------------------

This crash is caused by foo<X>, not X::A.  You can't use a template-id when
defining a primary template.

Jason



More information about the Gcc mailing list