This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in egcs 1.1.1, return default constructor
- To: bol at haushahn-as dot de
- Subject: Re: Bug in egcs 1.1.1, return default constructor
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Sat, 1 May 1999 01:40:56 +0200
- CC: egcs-bugs at egcs dot cygnus dot com
- References: <5274ffffff366cff13ff7a637c67ff143729b90a@haushahn-as.de>
> 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.