Sign in
llvm
/
llvm-archive
/
a0e6d55d029bd2b62e8c21c2a186ff71afceeb2e
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
src
/
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" }