repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
friend38.C
blob
a7363013f3b698a437df48af003043e7c451c72f
1
// Build don't link:
2
3
// Overly simplified from testcase by "B. K. Oxley" <binkley@bigfoot.com>
4
5
template<class P, class Q> struct foo {
6
typedef P parent_type;
7
friend parent_type; // ERROR - template parameters cannot be friends
8
friend Q; // ERROR - template parameters cannot be friends
9
};