Sign in
llvm
/
llvm-archive
/
47f46514d69ad808308539dc6c69b907868fcf8a
/
.
/
llvm-gcc-4.2
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend44.C
blob: a0f63c866ae4fd67841efa00e8cccc4f8fccff15 [
file
] [
log
] [
blame
]
//PR c++/28260
template
<int>
struct
A
{
friend
int
foo
();
// { dg-error "new declaration" }
};
void
foo
()
{
A
<
0
>
a
;
}
// { dg-error "ambiguates old declaration" }