[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] New: 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 Bug ID: 110828 Summary: union constexpr dtor not constexpr when used in member array Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal

[Bug c++/104944] New: incorrect alignas(void) accepted (with warning if templated)

2022-03-15 Thread gccbugbjorn at fahller dot se via Gcc-bugs
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

[Bug c++/100047] False -Wmaybe-uninitialized on one var depending on type of other var

2021-04-12 Thread gccbugbjorn at fahller dot se via Gcc-bugs
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

[Bug c++/100047] New: False -Wmaybe-uninitialized on one var depending on type of other var

2021-04-12 Thread gccbugbjorn at fahller dot se via Gcc-bugs
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

[Bug c++/97837] ICE on requires with *this in destructor

2020-11-15 Thread gccbugbjorn at fahller dot se via Gcc-bugs
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.

[Bug c++/97837] ICE on requires with *this in destructor

2020-11-15 Thread gccbugbjorn at fahller dot se via Gcc-bugs
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

[Bug c++/97837] New: ICE on requires with *this in destructor

2020-11-15 Thread gccbugbjorn at fahller dot se via Gcc-bugs
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++