summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr31434.C
blob: 54786167c35bef5c2fb163b194a72d68c739893e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options "-std=gnu++0x" }
template<typename... T> int foo(const T&) // { dg-error "not expanded with|T" }
{
 union { T t; }; // { dg-error "not expanded with|T" }
 return t;
}

void bar()
{
  foo(0); // { dg-error "no matching" }
  // { dg-message "(candidate|cannot convert)" "candidate note" { target *-*-* } 10 }
}