blob: e70bdd17e9a98be93a10e57aeed4c1d3a389eb0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// { dg-do compile { target c++11 } }
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 }
}
|