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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
friend2.C
blob
2e88845cceb0ede102b18be448b189fb4e6fa5b8
1
// { dg-do compile }
2
// Origin: <struppi@acm.org>
3
4
// PR c++/8591
5
// Template or class detection in friend declaration
6
7
namespace NS {
8
template <class T1, class T2, class T3 = int, class T4 = int>
9
struct C {};
10
}
11
12
template <class T> class X {
13
friend class NS::C; // { dg-error "expected|friend" }
14
};
15
16
X<int> c;