FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / opeq2.C
blob9e91ab3ae0fac255a96eafb2e8f403c599a4a88f
1 // Bug: default operator= is not being generated properly.
2 // PRMS Id: 3525
3 // Build don't link:
5 struct ccUnwind 
7     ccUnwind& operator = (const ccUnwind&);
8 };
10 struct ccEllipseUnit
11
12     ccEllipseUnit () {}
15 struct ccEllipse : ccUnwind  
16 {   
17     ccEllipse ();
18     ccEllipse (const ccEllipseUnit&);
22 void foo ()
24     ccEllipse e;
25     e = ccEllipseUnit();        // gets bogus error - assignment not defined