repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr60871.C
blob
902b9ee69d03905a45626ebbdc249d27e5a4b1d4
1
/* { dg-do compile } */
2
struct A
3
{
4
virtual void m_fn1 ();
5
int m_local;
6
};
7
class C : virtual public A
8
{
9
};
10
struct B
11
{
12
A *m_g;
13
14
B (A *p1) : m_g (p1) { m_g->m_fn1 (); }
15
};
16
struct C7
17
{
18
virtual ~C7 ();
19
};
20
class D : public C, C7
21
{
22
};
23
struct F : D
24
{
25
F (int);
26
27
static void m_fn2 ()
28
{
29
F a (0);
30
B b (&a);
31
}
32
};
33
void fn1 () { F::m_fn2 (); }