From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2770 invoked by alias); 31 Oct 2002 02:06:00 -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 2748 invoked by uid 71); 31 Oct 2002 02:06:00 -0000 Date: Wed, 30 Oct 2002 18:06:00 -0000 Message-ID: <20021031020600.2746.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/1920: g++ -O1 optimization bug in casting a reference argument Reply-To: Wolfgang Bangerth X-SW-Source: 2002-10/txt/msg01307.txt.bz2 List-Id: The following reply was made to PR c++/1920; it has been noted by GNATS. From: Wolfgang Bangerth To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/1920: g++ -O1 optimization bug in casting a reference argument Date: Wed, 30 Oct 2002 20:03:32 -0600 (CST) The code in question invokes a gcc extension, casts as lvalues. The manual says about this: > Standard C++ allows compound expressions and conditional expressions > as lvalues, and permits casts to reference type, so use of this > extension is deprecated for C++ code. Still, if the compiler accepts the syntax, then it should get it right. W. ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth