This is the mail archive of the gcc-prs@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]
Other format: [Raw text]

Re: c++/1920: g++ -O1 optimization bug in casting a reference argument


The following reply was made to PR c++/1920; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
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
 
 


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