]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/initlist41.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist41.C
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
This page took 0.038143 seconds and 5 git commands to generate.