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);
}