diff options
| author | Jakub Jelinek <jakub@redhat.com> | 2026-02-07 11:06:35 +0100 |
|---|---|---|
| committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2026-02-07 11:09:20 +0100 |
| commit | e6749b94438a1a47c34a390e2eee53546c6d33ea (patch) | |
| tree | 06d8132755c18ea09ac38508f6aaa58941749ac6 /libjava/classpath/gnu/java | |
| parent | 5f5ca32dd175ccd2946cedef23769482c309945e (diff) | |
| download | gcc-e6749b94438a1a47c34a390e2eee53546c6d33ea.zip gcc-e6749b94438a1a47c34a390e2eee53546c6d33ea.tar.gz gcc-e6749b94438a1a47c34a390e2eee53546c6d33ea.tar.bz2 | |
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 <jakub@redhat.com>
PR c++/123752
* pt.cc (tsubst_splice_expr): Return error_mark_node if
splice returned it.
* g++.dg/reflect/splice8.C: New test.
Diffstat (limited to 'libjava/classpath/gnu/java')
0 files changed, 0 insertions, 0 deletions
