]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/variadic112.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic112.C
1 // PR c++/49420
2 // { dg-do compile { target c++11 } }
3
4 struct A { };
5
6 template <class T> struct B
7 {
8 typedef typename T::type type ; // { dg-error "no type" }
9 };
10
11 template <typename Array, typename... Args>
12 typename B<Array>::type
13 get(const Array& a, Args... args);
14
15 int main()
16 {
17 A a;
18 int x = get(a, 1, 2, 3); // { dg-error "no match" }
19 }
This page took 0.040089 seconds and 5 git commands to generate.