Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
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" }