[Bug c++/89214] [7/8/9 Regression] ICE in digest_init_r, at cp/typeck2.c:1211 with -std=c++17

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 21 18:44:00 GMT 2019


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

--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Another version, without a converting ctor:

struct B {
  int c;
};

struct D : B { };

void
fn ()
{
  D b{{D{42}}};
}


More information about the Gcc-bugs mailing list