OSDN Git Service

PR c++/28878
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / friend44.C
1 //PR c++/28260
2
3 template<int> struct A
4 {
5   friend int foo(); // { dg-error "new declaration" }
6 };
7
8 void foo() { A<0> a; } // { dg-error "ambiguates old declaration" }