This is the mail archive of the gcc-patches@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]

Re: [patch] Re: Wrong destruction order of static objects in g++


Richard Henderson <rth@dot.cygnus.com> writes:

> On Thu, Jun 04, 1998 at 04:25:56PM -0300, Alexandre Oliva wrote:
>> I don't think so, but it's easy to work around this problem.  Here's a 
>> patch that adds this test case.
> [...]
>> +int main() {}

> Don't forget to exit(0).

There's no need for that in C++.  Falling off main() is equivalent to
returning zero.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



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