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] |
Hi,in this relatively serious ICE on invalid regression (we don't emit any sensible diagnostic before ICE-ing) the problem is that is_ancestor simply asserts that the second argument can be only a NAMESPACE_DECL or a CLASS_TYPE_P, whereas in the erroneous input at issue it's a TYPENAME_TYPE. Thus the idea of not calling is_ancestor at all in this case + adjusting the two error_at calls to use %qT instead of %qD (dump_type can handle a NAMESPACE_DECL whereas dump_type can't handle a TYPENAME_TYPE).
Tested x86_64-linux. Thanks, Paolo. //////////////////////////////
Attachment:
CL_58980
Description: Text document
Attachment:
patch_58980
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |