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
libstdc++: remove JSON comment.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
save1.C
blob
2358eb50c9d7f3f2e70bafab5f74e73979404ef7
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
20
void foo() { C().b[0].i; }