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]

[PATCH] Fix PR 17929, ICE in finish_anon_union, error recovery


A recent patch (for PR17393) introduced another error recovery problem in
the C++ front-end. This patch fixes that regression by checking for
error_mark_node.


OK for 3.4 and mainline?

Thanks,
Andrew Pinski

Testcase in the testsuite already as g++.dg/parse/qualified2.C.

ChangeLog:

	* decl2.c (finish_anon_union): If we have a error_mark_node, return
	early.


Patch:

Attachment: temp.diff.txt
Description: Text document


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