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
PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr69164.C
blob
e9a1a4f6189ffa196b2cf7d9b03c30c0f3e32b20
1
// PR c++/69164
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-O2" }
4
5
struct A {
6
struct B {
7
B () {}
8
bool : 1;
9
};
10
B foo () { B r; return r; }
11
};
12
13
struct C {
14
struct D {
15
D (C *x) : d (x->c.foo ()) {}
16
A::B d;
17
};
18
A c;
19
};
20
21
struct F : C {
22
D f = this;
23
F (int, int) {}
24
};
25
26
void
27
bar (int a, int b)
28
{
29
F (b, a);
30
}