]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/init.cc
re PR c++/66583 (incorrect implicitly-defined move constructor for class with anonymo...
authorJason Merrill <jason@redhat.com>
Wed, 21 Oct 2015 02:24:08 +0000 (22:24 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 21 Oct 2015 02:24:08 +0000 (22:24 -0400)
commita81072c78284d233c2ca7582235d0e01eda83082
treee72867ff2c9fdb8412f2bb8ee008bc3e5e120fc5
parent0a8f32b8fc399b3fc2da1449d92de22da83d3853
re PR c++/66583 (incorrect implicitly-defined move constructor for class with anonymous union and NSDMI)

PR c++/66583

* init.c (innermost_aggr_scope): New.
(build_field_list): Change uses_unions_p to uses_unions_or_anon_p.
(sort_mem_initializers): Handle initializers for entire anonymous
aggregates.

From-SVN: r229108
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/g++.dg/cpp0x/anon-union1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/anon-struct7.C [new file with mode: 0644]