[Bug c++/120775] [C++26] P2996R13 - Reflection
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 11 16:49:58 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120775
--- Comment #27 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #26)
> https://forge.sourceware.org/marek/gcc/pulls/96 seems to fix that, shall I
> merge that or do you want something else?
Could we do just
- refl = cxx_constant_value (refl);
+ refl = fold_non_dependent_expr (refl, tf_warning_or_error,
+ /*manifestly_const_eval=*/true);
?
More information about the Gcc-bugs
mailing list