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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
virtual4.C
blob
5415fdb3cf044513c5c9687a24de7efcfa83ae89
1
// PR c++/31027
2
3
struct A {};
4
5
template<typename T>
6
struct C: virtual A {
7
C() {}
8
template<typename T_OTHER> C(const C<T_OTHER>&) {}
9
C func(const class C<long>&) const;
10
operator bool() const;
11
};
12
13
template<typename T>
14
struct D: C<T> {
15
void func2() {
16
C<int>a;
17
a.func(a);
18
}
19
};
20
21
void func3() {
22
C<int>a;
23
a.func(a);
24
}