1 2 3 4 5 6 7
// { dg-do compile { target c++11 } } template<typename T> void f(T); template <class T> class A { friend constexpr void f<>(int); // { dg-error "'constexpr' is not allowed" } };