repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove outermost loop parameter.
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
inherit4.C
blob
511c9e6050a1650c396bc32ffcdca0622f9d30b4
1
// PR c++/21008, DR 515
2
3
struct A {
4
int foo_;
5
};
6
template <typename T> struct B: public A { };
7
template <typename T> struct C: B<T> {
8
int foo() {
9
return A::foo_; // #1
10
}
11
};
12
int f(C<int>* p) {
13
return p->foo();
14
}