From owner-freebsd-hackers Tue May 13 01:03:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA08097 for hackers-outgoing; Tue, 13 May 1997 01:03:19 -0700 (PDT) Received: from ocean.campus.luth.se (ocean.campus.luth.se [130.240.194.116]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA08089 for ; Tue, 13 May 1997 01:03:14 -0700 (PDT) Received: (from karpen@localhost) by ocean.campus.luth.se (8.7.5/8.7.3) id KAA24381; Tue, 13 May 1997 10:11:09 +0200 (MET DST) From: Mikael Karpberg Message-Id: <199705130811.KAA24381@ocean.campus.luth.se> Subject: Re: g++ shared library segfaults To: joerg_wunsch@uriah.heep.sax.de Date: Tue, 13 May 1997 10:11:08 +0200 (MET DST) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <19970510083142.OD64404@uriah.heep.sax.de> from J Wunsch at "May 10, 97 08:31:42 am" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk According to J Wunsch: > 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. For those that are interested, here's a nice link to some of the ANSI drafts: http://www.cygnus.com/misc/wp/ /Mikael