[Bug c++/125412] [reflection] ICE in eval_type_trait, at cp/reflect.cc:4136
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 27 07:28:06 GMT 2026
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 <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:1124bb120dea57071537465033b38da914fc16da
commit r17-826-g1124bb120dea57071537465033b38da914fc16da
Author: Jakub Jelinek <jakub@redhat.com>
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 <jakub@redhat.com>
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 <jason@redhat.com>
More information about the Gcc-bugs
mailing list