[C++ Patch] PR 78344 ("ICE on invalid c++ code (tree check: expected tree_list, have error_mark in cp_check_const_attributes, at cp/decl2.c:1347")

Jason Merrill jason@redhat.com
Thu Jan 11 20:42:00 GMT 2018


On 01/10/2018 06:50 PM, Paolo Carlini wrote:
> thus the below is a rather "dull" solution at the level of 
> cplus_decl_attributes itself: cp_check_const_attributes is tweaked to 
> check for error_mark_node at each outer iteration

This shouldn't be necessary; we should have returned error_mark_node for 
the attribute list rather than append it to something else, in which 
case the existing check for attributes == error_mark_node would have 
done the job.

Jason



More information about the Gcc-patches mailing list