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

--- Comment #11 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:e6749b94438a1a47c34a390e2eee53546c6d33ea

commit r16-7380-ge6749b94438a1a47c34a390e2eee53546c6d33ea
Author: Jakub Jelinek <[email protected]>
Date:   Sat Feb 7 11:06:35 2026 +0100

    c++: Fix error recovery of invalid splice during tsubst_splice_expr
[PR123752]

    splice can return error_mark_node, e.g. if the evaluation of the
    constant expression throws without being caught, and the error_mark_node
    later on causes ICEs in various asserts.

    The following patch fixes it by returning early if error_mark_node is
    returned.

    2026-02-07  Jakub Jelinek  <[email protected]>

            PR c++/123752
            * pt.cc (tsubst_splice_expr): Return error_mark_node if
            splice returned it.

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

Reply via email to