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
* ru.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr64686.C
blob
714aa4100c59d190d1d4fb0b0c813e8f383feddc
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
}
19