https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120380

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Uecker <uec...@gcc.gnu.org>:

https://gcc.gnu.org/g:b2c8d3064764f1f4bfd41d8791d06f2206b42780

commit r16-1036-gb2c8d3064764f1f4bfd41d8791d06f2206b42780
Author: Martin Uecker <uec...@tugraz.at>
Date:   Thu May 29 17:17:12 2025 +0200

    c: fix ICE related to tagged types with attributes in diagnostics
[PR120380]

    get_aka_type will create a new type for diagnostics, but for tagged types
    attributes will then be ignored with a warning.  This can lead to
reentering
    warning code which leads to an ICE.  Fix this by ignoring the attributes
    for tagged types.

            PR c/120380

    gcc/c/ChangeLog:
            * c-objc-common.cc (get_aka_type): Ignore attributes for tagged
types.

    gcc/testsuite/ChangeLog:
            * gcc.dg/pr120380.c: New test.

Reply via email to