Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/variadic-diag1.C

raw
1 // PR c++/55232
2 // { dg-do compile { target c++11 } }
3
4 struct vector
5 {
6 typedef int value_type;
7 };
8
9 template< class U, class... T >
10 struct X
11 {
12 void push_back( typename T::value_type ... vals )
13 {
14 U::asoeuth; // { dg-error "" }
15 }
16 };
17
18 int main()
19 {
20 X< int, vector > x;
21 x.push_back( 0 );
22 }