This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7858: g++ rejects legal code (regression from gcc 3.*)
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 9 Sep 2002 20:26:01 -0000
- Subject: Re: c++/7858: g++ rejects legal code (regression from gcc 3.*)
- Reply-to: Andrew Pinski <pinskia at physics dot uc dot edu>
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