https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93101
Bug ID: 93101 Summary: [regression] ICE - aggregate initialization of base Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m.cencora at gmail dot com Target Milestone: --- Following code snippet compiles fine with gcc 9 and earlier, but ICEs on gcc 10.0.0 20191229 (verified on godbolt.org) #include <string> struct base { std::string bla; }; struct foo : base { int a; }; base makeBase(); int getInt(); foo create() { return foo{ makeBase(), getInt() }; }