OSDN Git Service

PR c++/51143 - Alias template allows class definition
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / initlist41.C
1 // PR c++/44703
2 // { dg-options -std=c++0x }
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