This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 08/14] cp/tree.c: strip location wrappers in lvalue_kind
- From: Jason Merrill <jason at redhat dot com>
- To: David Malcolm <dmalcolm at redhat dot com>
- Cc: Nathan Sidwell <nathan at acm dot org>, Jakub Jelinek <jakub at redhat dot com>, Richard Biener <richard dot guenther at gmail dot com>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 11 Dec 2017 18:39:18 -0500
- Subject: Re: [PATCH 08/14] cp/tree.c: strip location wrappers in lvalue_kind
- Authentication-results: sourceware.org; auth=none
- References: <CADzB+2kfB26fTGXk2AVWuN1mv641OrcEBze+Lq-KexXHeS=Y9A@mail.gmail.com> <1510350329-48956-1-git-send-email-dmalcolm@redhat.com> <1510350329-48956-9-git-send-email-dmalcolm@redhat.com>
On 11/10/2017 04:45 PM, David Malcolm wrote:
Without this, then lvalue_p returns false for decls, and hence
e.g. uses of them for references fail.
Stripping location wrappers in lvalue_kind restores the correct
behavior of lvalue_p etc.
gcc/cp/ChangeLog:
* tree.c (lvalue_kind): Strip any location wrapper.
Rather, lvalue_kind should learn to handle VIEW_CONVERT_EXPR.
Jason