This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Missing return type in function prototype causes g++ to crash
- To: Paolo Faraboschi <frb at hpl dot hp dot com>
- Subject: Re: Missing return type in function prototype causes g++ to crash
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 28 Sep 1998 21:30:43 -300
- Cc: egcs-bugs at cygnus dot com
- References: <360FEB84.4189ECA2@hpl.hp.com>
Paolo Faraboschi <frb@hpl.hp.com> writes:
> foo(int x);
> foo(int x) { return x; }
> And g++ dies with an access violation. Note that gcc runs ok.
I believe this is fixed in the latest snapshot of egcs, but I can't
tell for sure, as I don't have access to a cygwin platform. Anyway,
the error message I get on Solaris/sparc is gone.
Thanks for your bug report.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil