On Wed, 22 Apr 2020, Jakub Jelinek wrote:
> Hi!
>
> On the following testcase GCC ICEs, because last_decl is error_mark_node,
> and diag_attr_exclusions assumes that if it is not NULL, it must be a decl.
>
> The following patch just doesn't diagnose attribute exclusions if the
> other decl is er
Hi!
On the following testcase GCC ICEs, because last_decl is error_mark_node,
and diag_attr_exclusions assumes that if it is not NULL, it must be a decl.
The following patch just doesn't diagnose attribute exclusions if the
other decl is erroneous (and thus we've already reported errors for it).