2 // g++ 1.36.1 bug 900205_04
4 // g++ allows a class for which an implicit default X::X() constructor must
5 // be created (implicitly by the compiler) to be derived from another class
6 // which does not have its own default X::X() constructor. This is illegal.
8 // Cfront 2.0 passes this test.
10 // keywords: default constructor, inheritance
15 struct0 (int, void *); // suppresses implicit default constructor
18 struct0::struct0 (int, void *)
22 struct struct0_derived_struct_0 : public struct0 { // { dg-error "" }
25 // struct0_derived_struct_0 object; // would give g++ error if compiled
27 int main () { return 0; }