// { dg-do compile { target c++11 } } template 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" } }