Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/pr78550.C

raw
1 // { dg-do compile { target c++14 } }
2
3 // PR 78550 ICE with initializer_list and bitfield member
4
5 namespace std
6 {
7 template <class T>
8 struct initializer_list
9 {
10 const T *a;
11 __SIZE_TYPE__ b;
12 constexpr initializer_list (const T *x, __SIZE_TYPE__ y) : a(x), b(y) { }
13 };
14 }
15 template <typename T>
16 struct A {
17 A (std::initializer_list<T>);
18 };
19 struct B {
20 int k : 1;
21 };
22 A<B> a{{0}};