Missing return type in function prototype causes g++ to crash

Alexandre Oliva oliva@dcc.unicamp.br
Mon Sep 28 17:39:00 GMT 1998


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




More information about the Gcc-bugs mailing list