blob: 1aad7a157da46910aaa6ad5112d4503834ad1ce9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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" }
}
|