// { dg-options "-std=gnu++0x" } template void foo(); void bar() { foo(); // { dg-error "no matching function" } }