OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/8591
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
friend2.C
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;