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: [PATCH c++] Fix pr22138


I would check that the next token after 'template' is '<', so we don't get this error message for ill-formed code like

template f<int>();

which isn't a template declaration at all, but rather someone trying to get the compiler to treat 'f' as a template name even though there's no f template in scope.

I agree that the at_*_scope_p issue isn't relevant to this patch.

Jason


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