[Bug c++/84578] [6/7/8 Regression] ICE with flexible array member and constexpr

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 2 15:51:00 GMT 2018


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I think I'll leave this as it is; we give an error for

struct A
{
  constexpr A() : i(), x("foo") {}
  int i;
  char x[];
};

A a;

I have a patch for the ICE.


More information about the Gcc-bugs mailing list