This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix decomp handling of fields with reference type (PR c++/78931)
- From: Jason Merrill <jason at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 4 Jan 2017 16:27:42 -0500
- Subject: Re: [C++ PATCH] Fix decomp handling of fields with reference type (PR c++/78931)
- Authentication-results: sourceware.org; auth=none
- References: <20161229151130.GN21933@tucnak>
On Thu, Dec 29, 2016 at 10:11 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> probe = TREE_OPERAND (probe, 0);
> TREE_TYPE (v[i]) = TREE_TYPE (probe);
> layout_decl (v[i], 0);
> - SET_DECL_VALUE_EXPR (v[i], tt);
> + SET_DECL_VALUE_EXPR (v[i], probe);
I guess we can do away with the probe variable and change tt instead.
Jason