[Bug c++/110828] union constexpr dtor not constexpr when used in member array
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 27 17:54:50 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110828
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Patrick Palka from comment #1)
> Does it work if you move the static_assert into a function scope? If so then
> this is probably a dup of PR85944.
Yes it does work with:
```
void f1() {
static_assert(S{}.f());
}
```
So yes it is a dup.
*** This bug has been marked as a duplicate of bug 85944 ***
More information about the Gcc-bugs
mailing list