[Bug c++/125423] ICE in tsubst_expr, at cp/pt.cc with C++26 reflection (missing TREE_BINFO handling during lambda tsubst)
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 26 22:29:03 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125423
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:
https://gcc.gnu.org/g:910901abe03a31c5f234852e224be4c37d08b5d9
commit r17-819-g910901abe03a31c5f234852e224be4c37d08b5d9
Author: Marek Polacek <polacek@redhat.com>
Date: Tue May 26 13:56:16 2026 -0400
c++/reflection: ICE when substituting base info [PR125423]
As tsubst says, we should never be tsubsting a binfo. So let's
bail for REFLECT_BASE.
PR c++/125423
gcc/cp/ChangeLog:
* pt.cc (tsubst_expr) <case REFLECT_EXPR>: Don't tsubst
REFLECT_BASEs.
gcc/testsuite/ChangeLog:
* g++.dg/reflect/bases_of6.C: New test.
Reviewed-by: Jason Merrill <jason@redhat.com>
More information about the Gcc-bugs
mailing list