// { dg-do compile { target c++14 } } template struct Sink {}; template void fn(); template T var = T(); template void f() { Sink::value>(); // { dg-error "function" } Sink::value>(); // { dg-error "variable" } } // { dg-prune-output "template argument" }