This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/21568] [4.0/4.1 regression] Casts in folding *& omitted
- From: "wilson at specifix dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2005 00:41:05 -0000
- Subject: [Bug tree-optimization/21568] [4.0/4.1 regression] Casts in folding *& omitted
- References: <20050514140942.21568.rguenth@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From wilson at specifix dot com 2005-07-08 00:41 -------
Subject: Re: [4.0/4.1 regression] Casts in folding
*& omitted
gcc2eran at tromer dot org wrote:
> And here is what N1124 [6.3.2.1/1] says:
> "When an object is said to have a particular type, the type is
> specified by the lvalue used to designate the object."
> See my point?
In the C99 standard, 6.5.4 Cast Operators, Footnote 85 "A cast does not
yield an lvalue. Thus, a cast to a qualified type has the same effect
as a cast to the unqualified version of the type."
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21568