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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
nsdmi-aggr3.C
blob
185ea10d1baf0c8f3867048d437dfa149727105a
1
// PR c++/66383
2
// { dg-do compile { target c++11 } }
3
4
namespace N1 {
5
struct B;
6
7
struct A
8
{
9
B* b;
10
A(B* b);
11
};
12
13
struct B
14
{
15
A a{ this };
16
};
17
18
A::A(B* b): b{ b } {}
19
20
void foo()
21
{
22
auto b = B{};
23
}
24
}
25
26
namespace N2 {
27
struct B;
28
29
struct A
30
{
31
B* b;
32
};
33
34
struct B
35
{
36
A a{ this };
37
};
38
39
void foo()
40
{
41
auto b = B{};
42
}
43
}