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
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr64686.C
blob
9eb54160ebac0373f1300221159518f31c902322
1
// { dg-do compile }
2
class A
3
{
4
protected:
5
A *m_fn2 (int) const;
6
public:
7
virtual A *m_fn1 (int *) const = 0;
8
};
9
class B : A
10
{
11
B (A *, int, A *);
12
A *m_fn1 (int *) const;
13
};
14
A *
15
B::m_fn1 (int *) const
16
{
17
new B (m_fn2 (0)->m_fn1 (0), 0, m_fn2 (0)->m_fn1 (0));
18
return 0;
19
}
20