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]

[C++ Patch] PR 34272


Hi,

the below seems to me a safe way to deal with this ICE, causing an
incomplete diagnostic in release mode too: do at the caller side, ie
instantiate_template, the check on matching levels which is asserted on
top of retrieve_specialization, and return error_mark_node in case of
failure: the callers of the former, at variance with the callers of the
latter, are prepared to deal with it.

Tested x86_64-linux. Ok for mainline?

Paolo.

/////////////////////

 

Attachment: CL_34272
Description: Text document

Attachment: patch_34272
Description: Text document


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