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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110828
Bug ID: 110828
Summary: union constexpr dtor not constexpr when used in member
array
Product: gcc
Version: 13.1.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104944
Bug ID: 104944
Summary: incorrect alignas(void) accepted (with warning if
templated)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100047
--- Comment #1 from Björn Fahller ---
Created attachment 50570
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50570&action=edit
Test program exposing the bug
bf@pteranodon /tmp> g++-10 -c -std=c++17 -Wmaybe-uninitialized ./t.cpp -Og # no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100047
Bug ID: 100047
Summary: False -Wmaybe-uninitialized on one var depending on
type of other var
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97837
--- Comment #2 from Björn Fahller ---
Should maybe mention that the code is terribly wrong in so many ways, but the
compiler should still not crash because of it.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97837
--- Comment #1 from Björn Fahller ---
Created attachment 49561
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49561&action=edit
Source of failing program
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97837
Bug ID: 97837
Summary: ICE on requires with *this in destructor
Product: gcc
Version: 10.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++