This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: migrating from msvc to gcc


On Nov 28, 2002, Lars Andersen <lars@rimfaxe.com> wrote:

> ISO C++ forbids declarations of `terminate_function´ with no type

Looks like you're relying on the implicit-int rule, that used to be
part of the C Standard, but that is not well-formed C++.  g++
-fpermissive *might* be able to cope with this buggy code, but in the
long run you'll probably be better off turning the ill-formed code
into valid C++.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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