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
/
inherit6.C
1
// Origin PR c++/47172
2
// { dg-options "-std=c++0x" }
3
// { dg-do compile }
4
5
struct A
6
{
7
int f() const;
8
};
9
10
template <class T>
11
struct B : A { };
12
13
template <class T>
14
struct C : B<T>
15
{
16
void g();
17
};
18
19
template <class T>
20
void C<T>::g()
21
{
22
A::f();
23
}