Bug in egcs 1.1.1, return default constructor

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Fri Apr 30 23:15:00 GMT 1999


> I think I've detected a bug in egcs 1.1.1 parser.

Thanks for your bug report. This is a known bug; I will add it to the
list of known bugs. It is hard to fix, and will remain unfixed for
1.2. The problem is that the compiler mistakes it for a cast, and then
finds that there is no value to cast.

To work around that, just write

>          return ( class2() ); *

          return class2(); 

Hope this helps,
Martin

P.S. Please send complete examples, so that people can actually
reproduce the problem you are reporting.



More information about the Gcc-bugs mailing list