[Bug c++/90254] [8/9/10 Regression] ice on aggregate initialization of unmovable base

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 21 00:03:38 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90254

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
But this one is accepted by icc/clang++ yet we ICE:

struct A {
  A();
  A(const A &);
};
struct B : A { };

A foo ();

int
main ()
{
  B b{foo()};
}


More information about the Gcc-bugs mailing list