summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend44.C
blob: 814fec1d5f70b714fe975e45b70ac96f026db584 (plain)
1
2
3
4
5
6
7
8
9
// { dg-options "-fshow-column" }
//PR c++/28260

template<int> struct A
{
  friend int foo(); // { dg-error "14:new declaration" }
};

void foo() { A<0> a; } // { dg-error "6:ambiguates old declaration" }