repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove outermost loop parameter.
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
access7.C
blob
412ad00c0b7d48a42534f52d9114055a703f3021
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-message "instantiated" }
18
}