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

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

https://gcc.gnu.org/g:7fbdd41b9f0b8a235f3902b42773545945dfcd8e

commit r16-9032-g7fbdd41b9f0b8a235f3902b42773545945dfcd8e
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]>
    (cherry picked from commit 1124bb120dea57071537465033b38da914fc16da)

Reply via email to