From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1999 invoked by alias); 1 Jul 2002 21:56:07 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 1938 invoked by uid 71); 1 Jul 2002 21:56:06 -0000 Date: Mon, 01 Jul 2002 14:56:00 -0000 Message-ID: <20020701215606.1937.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Nathan Sidwell Subject: Re: c++/7181: foo::bar = foo::bar + foo::bar evaluates to zero at compile time Reply-To: Nathan Sidwell X-SW-Source: 2002-07/txt/msg00026.txt.bz2 List-Id: The following reply was made to PR c++/7181; it has been noted by GNATS. From: Nathan Sidwell To: paolo@gcc.gnu.org, dobrynin@bigfoot.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/7181: foo::bar = foo::bar + foo::bar evaluates to zero at compile time Date: Mon, 01 Jul 2002 22:50:53 +0100 paolo@gcc.gnu.org wrote: > > Synopsis: foo::bar = foo::bar + foo::bar evaluates to zero at FYI, this is broken in 2.96RH too, so is quite old. The static initializers are emitted in the wrong order so we initialize foo before foo. doh! nathan -- Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC 'But that's a lie.' - 'Yes it is. What's your point?' nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org