Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist101.C

raw
1 // PR c++/80956
2 // { dg-do compile { target c++11 } }
3
4 #include <initializer_list>
5
6 template <typename T> struct B { B (std::initializer_list<T>); };
7 struct C { virtual int foo (); };
8 struct D : C {} d { B<C> { D {} } }; // { dg-error "no matching" }