Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 1997 08:31:42 +0200
From:      j@uriah.heep.sax.de (J Wunsch)
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: g++ shared library segfaults
Message-ID:  <19970510083142.OD64404@uriah.heep.sax.de>
In-Reply-To: <199705100222.UAA05625@pluto.plutotech.com>; from Justin T. Gibbs on May 9, 1997 21:20:17 -0600
References:  <199705100046.RAA01368@phaeton.artisoft.com> <199705100222.UAA05625@pluto.plutotech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As Justin T. Gibbs wrote:

>    * As described above, the scope of variables declared in the
>      initialization part of a for statement has been changed; such
>      variables are now visible only in the loop body.  Use
>      `-fno-for-scope' to get the old behavior.  You'll need this flag
>      to build groff version 1.09, Ptolemy, and many other free software
>      packages.

Du-oh.  While i always considered it poor style to declare a variable
inside a for statement, when it was intended to use it later on, i
think that's a fairly drastic change in the semantics.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970510083142.OD64404>