This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
More on VIEW_CONVERT_EXPR
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rth at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 21 Jul 04 10:30:11 EDT
- Subject: More on VIEW_CONVERT_EXPR
I see VIEW_CONVERT_EXPR of type T applied to object X as meaning
"treat object X as if it were type T". That's why I see it more as
a code 'r'.
That makes as much sense on the LHS of an assigment as on the RHS.
That doesn't correspond to any lanaguage's user-level semantics as far
as I know, but makes sense for internal purposes and and is useful there.
As long as we already support it *inside* the LHS, there's no reason why
it shouldn't be able to be the outermost reference and all or nearly all
the current code does that just fine.