1// PR c++/31446
2
3template<void> struct A // { dg-error "valid type" }
4
5{
6  template<int> friend void foo();
7};
8
9void bar()
10{
11  foo<0>(); // { dg-error "not declared|primary-expression" }
12}
13