Bug in egcs 1.1.1, return default constructor

Georg Bolz bol@haushahn-as.de
Fri Apr 30 05:05:00 GMT 1999


Hallo,

I think I've detected a bug in egcs 1.1.1 parser.
I have the following construct:
class2 class1::f1()
{
     if (var1 == var2)
         return ( class2() ); *
     return var3;
}
The compiler is confused by compiling the line with
the asterix 'return ( class2() );'.
May be this is fixed already in 1.1.2, but I don't have
this one.

Georg



More information about the Gcc-bugs mailing list