PR c++/83956 - wrong dtor error with anonymous union
authorJason Merrill <jason@redhat.com>
Fri, 26 Jan 2018 20:47:32 +0000 (15:47 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 26 Jan 2018 20:47:32 +0000 (15:47 -0500)
commit5bb1c2be88b8f99e050df8ec9052771b122b769f
tree35108788c8a893b1a10902ad6cddbc1c02e047c8
parentf8862a1b2afad9d107ad505de2bf554705ebdb38
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.

From-SVN: r257107
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/g++.dg/cpp0x/anon-union2.C [new file with mode: 0644]