This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: ICE on invalid c++



On Dec 23, 2005, at 1:40 PM, Mike Stump wrote:


template <class T> class C {
    typedef T* int;
};

ICEs due to the fact the DECL_NAME is 0. With the below patch, we now get:

t1.cc:2: error: expected unqualified-id before 'int'
t1.cc:2: error: expected ';' before 'int'

and no ICE. Now, the only question is, do we want to put the check here, or, should we catch this sooner?

This is a regression from 3.3.

Ok?

If this does not get reviewed in a week, please file a bug so we don't lose
track of this bug (regression).


Thanks,
Andrew Pinski


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