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
/
initlist41.C
blob
7ae4928f2bd2b4fde662c7367627c014e6fc9835
1
// PR c++/44703
2
// { dg-do compile { target c++11 } }
3
4
#include <initializer_list>
5
6
typedef std::initializer_list<int> type ;
7
void f(type) {}
8
9
int main()
10
{
11
// error: could not convert '{1, 2, 3}' to 'type'
12
f({1,2,3}) ;
13
}
14