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
/cp
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
typedef12.C
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// Origin: Jason Merrill <jason@redhat.com>, PR c++/26693
3
// { dg-do compile }
4
5
class A
6
{
7
protected:
8
typedef int mytype;
9
};
10
11
template <class T> class B;
12
13
class C: public A
14
{
15
template <class T> friend class B;
16
};
17
18
template <class T> class B
19
{
20
C::mytype mem;
21
};
22
23
B<int> b;