[Bug c++/97128] New: Uninitialized members of base class wrongly allowed in constexpr constructor

2020-09-20 Thread feodor.alexeev+gcc at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: feodor.alexeev+gcc at gmail dot com Target Milestone: --- Given this code: (https://godbolt.org/z/qsaeM7) struct Base { int x; }; struct Derived : Base { constexpr

[Bug c++/97128] Uninitialized members of base class wrongly allowed in constexpr constructor

2020-09-20 Thread feodor.alexeev+gcc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97128 --- Comment #1 from Fedor Alekseev --- Sorry, the link in the initial comment led to a slightly less minimal example. Here's a link to the code from the initial comment in CE: https://godbolt.org/z/dWP1sh

[Bug c++/97128] Uninitialized members of base class wrongly allowed in constexpr constructor in c++17 mode

2020-09-20 Thread feodor.alexeev+gcc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97128 --- Comment #2 from Fedor Alekseev --- Also my initial claim about c++20 was wrong, gcc 10+ generates the error when provided with -std=c++2a switch. Still there is a problem in c++17 mode.