Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend44.C
blob: 6ff4db3a3b6939e3636507e225f959375912f52a [
file
] [
log
] [
blame
]
// { dg-options "-fshow-column" }
//PR c++/28260
template
<int>
struct
A
{
friend
int
foo
();
// { dg-error "14:ambiguating new declaration" }
};
void
foo
()
{
A
<
0
>
a
;
}
// { dg-message "6:old declaration" }