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]

Re: [PATCH] Fix PR middle-end/17793


On Tue, 19 Oct 2004 23:51:29 +0200, Eric Botcazou <ebotcazou@libertysurf.fr> wrote:

>      case VIEW_CONVERT_EXPR:
> +	if (TREE_CODE (TREE_OPERAND (op0, 0)) == NOP_EXPR)

Hmm?  It makes no sense to have a NOP_EXPR inside a VIEW_CONVERT_EXPR.  A
NOP_EXPR is an rvalue conversion; a VIEW_CONVERT_EXPR is an lvalue
conversion, which cannot be applied to the rvalue produced by a NOP_EXPR.
This seems like a front end bug; the NOP_EXPR should be stripped when the
VIEW_CONVERT_EXPR is added.

This patch should not be necessary.

Jason


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