This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Error in 971122 i686-pc-linux-gnu


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]