1 // { dg-options "-std=gnu++0x" } foo(const T &)2template<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 bar()8void bar() 9 { 10 foo(0); // { dg-error "no matching" } 11 // { dg-message "(candidate|cannot convert)" "candidate note" { target *-*-* } 10 } 12 } 13