blob: 1aad7a157da46910aaa6ad5112d4503834ad1ce9 [file] [log] [blame]
// PR c++/31446
template<void> struct A // { dg-error "valid type" }
{
template<int> friend void foo();
};
void bar()
{
foo<0>(); // { dg-error "not declared|primary-expression" }
}