On Thu, Feb 8, 2018 at 6:22 AM, Paolo Carlini <paolo.carl...@oracle.com> wrote:
> Hi,
>
> this one should be rather straightforward. As noticed by Jakub, we started
> emitting the spurious warning with the fix for c++/69257, which, among other
> things, fixed decay_conversion wrt mark_rvalue_use and mark_lvalue_use
> calls. In particular it removed the mark_rvalue_use call at the very
> beginning of the function, thus now a PARM_DECL with NULLPTR_TYPE as type,
> being handled specially at the beginning of the function, doesn't get the
> mark_rvalue_use treatment - which, for example, POINTER_TYPE now gets later.
> I'm finishing testing on x86_64-linux the below. Ok if it passes?

A future -Wunused-but-set-variable might warn about the dead store to
exp; let's just discard the result of mark_rvalue_use.  OK with that
change.

> PS: sorry Jason, I have to re-send separately to the mailing list because
> some HTML crept in again. Grrr.

Hmm, I thought the mailing lists had been adjusted to allow some HTML.

Jason

Reply via email to