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 <[email protected]>: https://gcc.gnu.org/g:910901abe03a31c5f234852e224be4c37d08b5d9 commit r17-819-g910901abe03a31c5f234852e224be4c37d08b5d9 Author: Marek Polacek <[email protected]> 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 <[email protected]>
