☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend44.C
☽
☼
gcc/testsuite/g++.dg/template/friend44.C
code
plain
raw
1
// { dg-options "-fshow-column" }
2
//PR c++/28260
3
4
template<int> struct A
5
{
6
friend int foo(); // { dg-error "14:ambiguating new declaration" }
7
};
8
9
void foo() { A<0> a; } // { dg-message "6:old declaration" }