/cp
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist31.C
blobffc985567edc4303b31246b0fa8fc3d841ee8070
1 // PR c++/43028
2 // { dg-options "-std=c++0x" }
4 #include <initializer_list>
6 struct string { string(std::initializer_list<char>) { } };
8 void f() {
9   auto y =
10   {
11     string(Equation()) // { dg-error "not declared" }
12   }; // { dg-error "unable to deduce" }