https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123871
--- Comment #2 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:6f7c038eee71e519571df5741413f0547fbe85a7 commit r16-7145-g6f7c038eee71e519571df5741413f0547fbe85a7 Author: Marek Polacek <[email protected]> Date: Thu Jan 29 09:39:12 2026 -0500 c++/reflection: add fixed test [PR123871] Incredibly, a patch that I just pushed (r16-7140-g101f2970adc0a7) fixed this ICE. I notice that we don't emit the diag_array_subscript diagnostic because slice calls fold_non_dependent_expr which calls _eval_outermost with allow_non_constant=true. I wonder if we want to change this. PR c++/123871 gcc/testsuite/ChangeLog: * g++.dg/reflect/error11.C: New test.
