This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug in egcs 1.1.1, return default constructor


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]