// { dg-do compile { target c++11 } } template void f(T); template class A { friend constexpr void f<>(int); // { dg-error "'constexpr' is not allowed" } };