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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
here is a compile time testcase:
```
#include <initializer_list>

enum E {
    One
};

struct A {
    E e = One;
};

struct B {
    A as[1] {};
};

struct v
{
  constexpr v(const std::initializer_list<B> &a) : size(a.size()){}
  int size;
};

constexpr v a{{}};

static_assert(a.size == 1);

```


Note it works for -std=c++11 but fails for -std=c++14.  Note the original
testcase acts similar too.

Reply via email to