repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
used-inline1.C
blob
ce4882eb9945459e8bb7dce5d596c26fbab020e2
1
template <class T> struct A {
2
friend void foo(A*) { } // { dg-bogus "never defined" }
3
void bar() {
4
baz(this); // { dg-error "baz" }
5
foo(this);
6
}
7
};
8
9
int main()
10
{
11
A<int>().bar();
12
}