aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@gcc.gnu.org>2016-03-23 21:08:32 +0000
committerPatrick Palka <ppalka@gcc.gnu.org>2016-03-23 21:08:32 +0000
commit426b9428081f1ec16d9e7ca6bd34ce50ff8cde37 (patch)
treec5c84c33aec21b6c26ab9ee3f47e1793de17494c /gcc/fold-const.c
parentcd1588c4d60162730a103b6ca3a30139d88a57e3 (diff)
downloadgcc-426b9428081f1ec16d9e7ca6bd34ce50ff8cde37.zip
gcc-426b9428081f1ec16d9e7ca6bd34ce50ff8cde37.tar.gz
gcc-426b9428081f1ec16d9e7ca6bd34ce50ff8cde37.tar.bz2
Fix PR c++/70347 (default member initializer not picked up by union)
gcc/cp/ChangeLog: PR c++/70347 * typeck.c (process_init_constructor_union): If the initializer is empty, use the union's NSDMI if it has one. gcc/testsuite/ChangeLog: PR c++/70347 * g++.dg/cpp1y/nsdmi-union1.C: New test. From-SVN: r234443
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions