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
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
access3.C
blob
e8ee1041d13c8bff15525ec42350af6cfc00f823
1
// { dg-do compile }
2
3
// PR c++/5387
4
// Enforcing access of typename type.
5
6
template <class T> struct A {
7
typename T::template X<int> x; // { dg-error "this context" }
8
};
9
10
class B {
11
template <class T> class X {}; // { dg-error "private" }
12
};
13
14
int main()
15
{
16
A<B> ab; // { dg-error "instantiated" }
17
}