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
Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
ctor3.C
blob
d3eb2c3f8a55e362f531f7fdbb7e730ed6e1006f
1
struct A {};
2
struct B;
3
4
template <class TP> struct X: virtual A {
5
template <class TP2> X(TP2* ptr) {}
6
template <class TP2> X(const X<TP2>) {}
7
};
8
9
struct Y : X<B> {
10
Y(A* a) : X<B>(a) {}
11
};
12
13
void func1(X<B>);
14
15
void func2() {
16
A a;
17
Y y(&a);
18
func1(X<A>(&a));
19
}