repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-explicit2.C
blob
26a63bf2aa7f00a65d5d88256a642cd45ddd35b3
1
// PR c++/88875
2
// { dg-do compile { target c++11 } }
3
4
#include <initializer_list>
5
6
struct X {
7
X();
8
explicit X(const std::initializer_list<int>& init);
9
};
10
11
struct Y
12
{
13
X x { 1, 2 }; // error
14
15
Y (int)
16
: x {1, 2} // ok
17
{
18
}
19
20
};