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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <[email protected]>:

https://gcc.gnu.org/g:1124bb120dea57071537465033b38da914fc16da

commit r17-826-g1124bb120dea57071537465033b38da914fc16da
Author: Jakub Jelinek <[email protected]>
Date:   Wed May 27 09:26:22 2026 +0200

    c++: Don't ICE in eval_constant_of on vars with error_mark_node type
[PR125412]

    The following testcase ICEs during error recovery, because we aren't
    prepared to handle error_mark_node type.

    Fixed thusly.

    2026-05-27  Jakub Jelinek  <[email protected]>

            PR c++/125412
            * reflect.cc (process_metafunction): If ht is error_operand_p,
            set *non_constant_p and return NULL_TREE.

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

    Reviewed-by: Jason Merrill <[email protected]>

Reply via email to