[gnu.g++.bug] Bug in constructor for aggregate.

hcl@itk.unit.no (05/08/89)

Compiler version 1.34.2, SUNoS 4.0 SUN 3

Strousstrup page 287 on members of aggregate - 

- An object can be a member of an aggregate only (1) if the object's
class do not have a constructor, or (2) if one of its constructors
takes no argument ... -

According to this the code below should compile happily as it did
under 1.34.1.

class foo
{
    int i;
public:
    foo() { i = 0;}
};

class bar
{
public:
    foo f[3];
};

main()
{
    bar t;
}

g++ -c  test.cc
In function int main ():
test.cc:16: invalid use of non-lvalue array