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++/29363
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
access3.C
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-message "instantiated" }
17
}