repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/78550
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr78550.C
blob
95596b10d7c619f1c5160897f40221bba83d1f75
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}};