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: [C++ Patch] PR 37650


Paolo Carlini wrote:

> this small patch avoids the ICE, tested x86_64-linux. Alternately, we
> could return error_mark_node (that leads to an additional error message
> ("expected unqualified-id..."), or/and we could check
> current_template_parms in the (only) caller push_template_decl_real). I
> don't have a strong opinion...
> 
> Ok for mainline?

I'd prefer the check go in push_template_decl_real with an assert in
process_partial_specialization.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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