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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
pr87574.C
blob
190e386550566cfb966af1f21d9035f7e761157c
1
// PR middle-end/87574
2
// Testcase by David Binderman <dcb314@hotmail.com>
3
4
// { dg-do compile }
5
// { dg-options "-O2 -g -Wno-return-type" }
6
7
class a {
8
public:
9
virtual ~a();
10
};
11
class c {
12
public:
13
enum j {};
14
virtual j d() = 0;
15
};
16
class e : a, c {
17
j d();
18
};
19
class f;
20
class g {
21
public:
22
static g *h();
23
f *i();
24
};
25
class f {
26
public:
27
template <class b> b *l(int);
28
};
29
c::j e::d() {}
30
void m() {
31
for (int k;;)
32
g::h()->i()->l<c>(k)->d();
33
}