OSDN Git Service

PR c++/44157
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / pr31434.C
1 // { dg-options "-std=gnu++0x" }
2 template<typename... T> int foo(const T&) // { dg-error "not expanded with|T" }
3 {
4  union { T t; }; // { dg-error "not expanded with|T" }
5  return t;
6 }
7
8 void bar()
9 {
10   foo(0); // { dg-error "no matching" }
11 }