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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
pr43890.C
blob
1b2807d0d98127efcc497300f1e03a4ca33cc14d
1
// PR c++/43890
2
// { dg-do compile }
3
4
class Outer
5
{
6
public:
7
Outer()
8
: i(*this)
9
{
10
}
11
12
class Inner
13
{
14
public:
15
Inner(Outer& o)
16
: o(o)
17
, i(0)
18
{
19
}
20
21
private:
22
Outer& o;
23
int const i;
24
};
25
26
private:
27
Inner i;
28
};
29
30
class A {
31
Outer o;
32
};
33
34
int main()
35
{
36
A *a = new A;
37
38
return 0;
39
}