Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
vect
/
pr21218.cc
blob: 2c2175987f08c65cdce3ec488b3b57e1cce6346f [
file
] [
log
] [
blame
]
/* { dg-do compile } */
struct
A
{
double
d
[
2
];
double
foo
(
int
i
)
{
return
d
[
i
];
}
};
struct
B
:
public
A
{};
void
bar
(
B
&
b
)
{
for
(
int
i
=
0
;
i
<
2
;
++
i
)
b
.
d
[
i
]
=
b
.
foo
(
i
);
}