c++ bug in egcs-2.93.11 on alphaev56-dec-osf4.0d
Alexandre Oliva
oliva@dcc.unicamp.br
Wed Mar 31 23:54:00 GMT 1999
On Mar 18, 1999, Oskar Enoksson <osken393@mail.student.liu.se> wrote:
> The following code is accepted by the compiler with strange results. Note
> that the member function is declared to return an int, but returns
> nothing.
Try -Wall. The code is not ill-formed, so the compiler must not
reject it. According to the C++ Standard, it produces undefined
results.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brazil
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,egcs.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists
More information about the Gcc-bugs
mailing list