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++/7858: g++ rejects legal code (regression from gcc 3.*)


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

From: Andrew Pinski <pinskia@physics.uc.edu>
To: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
Cc: Paolo Carlini <pcarlini@unitus.it>, <gcc-gnats@gcc.gnu.org>,
   <gcc-prs@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>, <nobody@gcc.gnu.org>
Subject: Re: c++/7858: g++ rejects legal code (regression from gcc 3.*)
Date: Mon, 9 Sep 2002 16:23:53 -0400

 Here is more information on why this is invalid code:
 According to the ARM (2nd edition) r.5.4,
 "The result of a cast to a reference type is an lvalue; the results of 
 the other casts are not."
 
 
 Thanks,
 Andrew Pinski
 


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