1 // PR c++/8748
2 // We were wrapping the ARRAY_REF in a SAVE_EXPR, causing us to try to make a bitwise
3 // copy of b[0].
4
5 struct A
6 {
7 int i;
8 };
9
10 struct B : A
11 {
12 virtual ~B();
13 };
14
15 struct C
16 {
17 B b[1];
18 };
19
foo()20 void foo() { C().b[0].i; }
21