repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
access4.C
blob
9451ecc22bef3db43e60f3c1076076d37ff1e9cd
1
// { dg-do compile }
2
// Origin: Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de>
3
4
// PR c++/7347
5
// Access control for typename during instantiation
6
7
template <int dim> class Base {
8
protected:
9
typedef int T;
10
};
11
12
template <int dim> class D : public Base<dim> {
13
public:
14
typedef typename Base<dim>::T T1;
15
D (T1 t);
16
};
17
18
D<2> d(1);