[Bug c++/93101] New: [regression] ICE - aggregate initialization of base

m.cencora at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Dec 30 10:46:00 GMT 2019


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() };
}


More information about the Gcc-bugs mailing list