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
2014-10-10 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr63476.C
blob
75ecc37406561588409b55a66c2011c2d34735f4
1
// { dg-do compile }
2
// { dg-additional-options "-std=gnu++11" }
3
4
enum class nsresult;
5
class A;
6
class B
7
{
8
public:
9
B (int);
10
A *operator->();
11
};
12
class C
13
{
14
};
15
class A
16
{
17
public:
18
virtual nsresult AddObserver (const char *, C *, bool) = 0;
19
};
20
class D : A
21
{
22
nsresult
23
AddObserver (const char *p1, C *p2, bool p3)
24
{
25
AddObserver (p1, p2, p3);
26
}
27
};
28
char *prefList[]{};
29
class F : C
30
{
31
nsresult Install ();
32
};
33
nsresult
34
F::Install ()
35
{
36
B branch = 0;
37
for (int i;;)
38
branch->AddObserver (prefList[i], this, false);
39
}