PR c++/83956 - wrong dtor error with anonymous union
commit9bf918f3ed54cfb9d4f26af694556bb716c3a239
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Jan 2018 20:47:32 +0000 (26 20:47 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Jan 2018 20:47:32 +0000 (26 20:47 +0000)
tree35108788c8a893b1a10902ad6cddbc1c02e047c8
parent6d3cbc0c5b0b03b41016e3af1818317f170f5fac
PR c++/83956 - wrong dtor error with anonymous union

* method.c (walk_field_subobs): Variant members only affect
deletedness.
(maybe_explain_implicit_delete): Pass &deleted_p for diagnostic.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257107 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/g++.dg/cpp0x/anon-union2.C [new file with mode: 0644]