view gcc/testsuite/g++.dg/cpp1y/pr78550.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// { dg-do compile { target c++14 } }

// PR 78550 ICE with initializer_list and bitfield member

namespace std
{
  template <class T>
  struct initializer_list
    {
      const T *a;
      __SIZE_TYPE__ b;
      constexpr initializer_list (const T *x, __SIZE_TYPE__ y) : a(x), b(y) { }
    };
}
template <typename T>
struct A {
  A (std::initializer_list<T>);
};
struct B {
  int k : 1;
};
A<B> a{{0}};