This is the mail archive of the gcc-patches@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]

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.


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