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

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

https://gcc.gnu.org/g:9d17a04f241e5c54b98456995ed8ce4d19c7db31

commit r16-8133-g9d17a04f241e5c54b98456995ed8ce4d19c7db31
Author: Marek Polacek <[email protected]>
Date:   Sun Mar 15 21:18:17 2026 -0400

    c++/reflection: add test for ICE with ^^decltype [PR124494]

    This test with invalid ^^decltype crashes.  finish_decltype_type
    got a USING_DECL because they sometimes aren't stripped when
    using -freflection.  We should give an error like we do for TYPE_DECL,
    otherwise finish_decltype_type returns NULL_TREE and eventually we
    crash in cp_parser_qualifying_entity after calling cp_parser_decltype.

    Fixed by r16-8132 which moved the cp_preserve_using_decl overriding.

            PR c++/124494

    gcc/testsuite/ChangeLog:

            * g++.dg/reflect/decltype1.C: New test.

Reply via email to