https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125423
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-16 branch has been updated by Marek Polacek <[email protected]>: https://gcc.gnu.org/g:c51f663f7f38702806c97afe74203a71233c8383 commit r16-8964-gc51f663f7f38702806c97afe74203a71233c8383 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]> (cherry picked from commit 910901abe03a31c5f234852e224be4c37d08b5d9)
