This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ RFH] PR 56961
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: Jason Merrill <jason at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 5 Jun 2014 15:20:23 +0200
- Subject: Re: [C++ RFH] PR 56961
- Authentication-results: sourceware.org; auth=none
- References: <539069C6 dot 1050800 at oracle dot com> <CAFiYyc1vz-ZjTdrfuPjS=QU=krNEVQaBVpAzozeBZuYGZXkHAg at mail dot gmail dot com> <53906CD2 dot 4070509 at redhat dot com> <53906CD7 dot 1030200 at oracle dot com>
On Thu, Jun 5, 2014 at 3:12 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Hi,
>
>
> On 06/05/2014 03:12 PM, Jason Merrill wrote:
>>
>> On 06/05/2014 09:05 AM, Richard Biener wrote:
>>>
>>> + *expr_p = build2 (COMPOUND_EXPR, TREE_TYPE (*expr_p),
>>> + op0, build_fold_addr_expr (op1));
>>
>>
>> That seems like a fine approach.
>
> Thanks a lot guys. Therefore I'm going to regtest it and if everything goes
> well commit it with a testcase.
I think the operands have to be reversed though - the type matches that
of op0. Sorry ;)
Richard.
> Thanks again,
> Paolo.