[Bug c++/103732] Incorrect constexpr evaluation of runtime expression
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 3 16:59:48 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103732
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> constexpr int y = s0.C;
The above is now valid due to https://wg21.link/p2280r2 (which was acecpted as
a defect report against all C++ versions).
>constexpr int z = a[i]->C;
I think this is invalid still because it is a pointer (not a this pointer) and
not a reference.
More information about the Gcc-bugs
mailing list