[Bug c++/124249] New: [reflection] wrong out-of-consteval-use for constant initializers
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 25 21:17:10 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124249
Bug ID: 124249
Summary: [reflection] wrong out-of-consteval-use for constant
initializers
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
As discussed in
<https://gcc.gnu.org/pipermail/gcc-patches/2026-February/709191.html>:
```
int i = (^^i, 42); // OK, MCE
```
but we give an error.
More information about the Gcc-bugs
mailing list