1 // { dg-do assemble } 2 // GROUPS passed operators 3 // opr-eq file 4 // Message-Id: <CCJrut.9M7@csc.ti.com> 5 // From: rowlands@hc.ti.com (Jon Rowlands) 6 // Subject: g++ 2.4.5: assignment operator in base class 7 // Date: Mon, 30 Aug 1993 00:54:29 GMT 8 9 class B { 10 public: 11 B & operator = (B); // delete this line and problem goes away 12 }; 13 14 class D : public B { 15 public: 16 D(); 17 D(int); 18 D(B); 19 }; 20 21 int main()22main() { 23 B b; 24 D d; 25 26 d = d; 27 28 d = 0; // t.cxx:20: assignment not defined for type `D' 29 d = D(0); 30 31 d = b; // t.cxx:23: assignment not defined for type `D' 32 d = D(b); 33 34 return(0); 35 } 36 37