This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch] PR 66644
- From: Jason Merrill <jason at redhat dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 28 Apr 2016 17:45:22 -0400
- Subject: Re: [C++ Patch] PR 66644
- Authentication-results: sourceware.org; auth=none
- References: <572267EF dot 1060200 at oracle dot com>
I would expect this to cause a false negative on a union of two
anonymous structs, both of which have initialized members.
I think better would be to have a local any_default_members rather than
passing the same pointer through all levels.
Also, you can look at 'type' rather than DECL_CONTEXT (field).
Jason