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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <[email protected]>:

https://gcc.gnu.org/g:57ccf065094f74d8c87d8a4cdc495d4195d70d65

commit r16-8119-g57ccf065094f74d8c87d8a4cdc495d4195d70d65
Author: Andrew Pinski <[email protected]>
Date:   Sat Mar 14 23:36:56 2026 -0700

    c++: Fix ICE with error mark for an attribute [PR124307]

    After r16-6808-g4b0e94b394fa38, we started to ICE when the
    std_attrs was error_mark_node. This fixes the problem by
    checking if it was an error_mark_node before looking for
    annotations.

    Bootstrapped and tested on x86_64-linux-gnu with no regressions.

    Changes since v1:
     * v2: Move the check for error mark earlier.
     * v3: small formating changes.

            PR c++/124307

    gcc/cp/ChangeLog:

            * parser.cc (cp_parser_base_specifier): Check for
            error mark like checking for non-nullness on the
            attribute.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/alignas24.C: New test.

    Signed-off-by: Andrew Pinski <[email protected]>

Reply via email to