https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96790
Bug ID: 96790 Summary: Indirectly inherited default constructor doesn't zero-initialize Product: gcc Version: 11.0 URL: https://godbolt.org/z/3563e1 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: johelegp at gmail dot com CC: johelegp at gmail dot com Target Milestone: --- See the URL. ```C++ struct base0 { int x; base0() = default; constexpr base0(int x) : x{x} { } }; struct base1 : base0 { using base0::base0; constexpr base1(void*) : base0{} { } }; struct derived : base1 { using base1::base1; }; void f() { []() consteval { derived{}.x + 1; }(); } ```