repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
access7.C
blob
92d4c68db393f50d1f25ae65df612f69e5f69aea
1
// { dg-do compile }
2
3
// PR c++/3663
4
// Enforce access of nested type.
5
6
template <typename A>
7
class S {
8
class T {}; // { dg-error "private" }
9
};
10
11
template <typename A>
12
typename A::T* f (A) { // { dg-error "this context" }
13
return 0;
14
}
15
16
void g () {
17
f (S<int> ()); // { dg-error "context|instantiated" }
18
}