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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
local-type1.C
blob
73bfd167385df1d30eaa8d04869a985fb1b8ff42
1
// PR c++/51048
2
// { dg-do compile { target c++11 } }
3
4
template<typename X>
5
struct A {
6
virtual void DoPush(X const& x) = 0;
7
void Push(X const& x) { DoPush(x); }
8
};
9
10
template<typename X>
11
struct B : A<X> {
12
using A<X>::Push;
13
virtual void DoPush(X const&) { }
14
};
15
16
int main() {
17
enum S { };
18
B<S>().Push(S());
19
}