[C++ Patch] PR 57599

Paolo Carlini paolo.carlini@oracle.com
Thu Jun 13 14:03:00 GMT 2013



Hi,

Jason Merrill <jason@redhat.com> ha scritto:

>On 06/12/2013 08:49 PM, Paolo Carlini wrote:
>> +	/* Add any qualifier conversions.  */
>> +	return build_nop (type, expr);
>
>For a cast to reference type, this will produce an rvalue rather than
>an lvalue.

Ah, thanks a lot for the clarification. Admittedly, I still find the whole area of nops rather obscure.

>Perhaps we should hand off to build_static_cast in the case described
>by
>the comment, rather than duplicate the logic.

Thanks for hint, I'll try to come up with another try over the next day or so.

Thanks again,
Paolo



More information about the Gcc-patches mailing list