diff options
author | Jason Merrill <jason@redhat.com> | 2022-07-20 18:15:31 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-07-21 17:21:17 -0400 |
commit | df118d7ba138cacb17203d4a1b5f27730347cc77 (patch) | |
tree | 2bc6c1de497c59f06d877c77656ee3973c7266e3 /gcc/graphds.cc | |
parent | 142e6af6959cba0d4dfd5cba6c4f16e15d154156 (diff) | |
download | gcc-df118d7ba138cacb17203d4a1b5f27730347cc77.zip gcc-df118d7ba138cacb17203d4a1b5f27730347cc77.tar.gz gcc-df118d7ba138cacb17203d4a1b5f27730347cc77.tar.bz2 |
c++: defaulted ctor with DMI in union [PR94823]
CWG2084 clarifies that a variant member with a non-trivial constructor does
not make the union's defaulted default constructor deleted if another
variant member has a default member initializer.
DR 2084
PR c++/94823
gcc/cp/ChangeLog:
* method.cc (walk_field_subobs): Fix DMI in union case.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/nsdmi-union7.C: New test.
Diffstat (limited to 'gcc/graphds.cc')
0 files changed, 0 insertions, 0 deletions