[Bug c++/110828] union constexpr dtor not constexpr when used in member array

2023-07-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110828 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug c++/110828] union constexpr dtor not constexpr when used in member array

2023-07-27 Thread gccbugbjorn at fahller dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110828 --- Comment #2 from Björn Fahller --- If I write it in the same way in a function, it compiles. consteval auto f() { return S{}.f(); } constexpr auto b = f(); However, if I break it into a constexpr object S s; and return s.f(), it does

[Bug c++/110828] union constexpr dtor not constexpr when used in member array

2023-07-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110828 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment #