3 struct B { B (); B (int); };
7 /* Here, A and B are unrelated types. */
14 B::B (); // { dg-error "cannot call constructor .B::B." }
15 B::B::B (); // { dg-error "cannot call constructor .B::B." }
16 B::B (0); // { dg-error "cannot call constructor .B::B." }
20 /* Here, C is (indirectly) derived from B. */
27 B::B (); // { dg-error "cannot call constructor .B::B." }
28 B::B::B (); // { dg-error "cannot call constructor .B::B." }
29 B::B (0); // { dg-error "cannot call constructor .B::B." }