blob: 38bd3705d115672da9e65362dc1d85a81ef15171 [file] [log] [blame]
// { dg-do compile { target c++14 } }
template <bool> struct Sink {};
template <class T> void fn();
template <class T> T var = T();
template <class T> void f()
{
Sink<fn<T>::value>(); // { dg-error "function" }
Sink<var<T>::value>(); // { dg-error "variable" }
}
// { dg-prune-output "template argument" }