diff options
author | Patrick Palka <ppalka@gcc.gnu.org> | 2016-03-23 21:08:32 +0000 |
---|---|---|
committer | Patrick Palka <ppalka@gcc.gnu.org> | 2016-03-23 21:08:32 +0000 |
commit | 426b9428081f1ec16d9e7ca6bd34ce50ff8cde37 (patch) | |
tree | c5c84c33aec21b6c26ab9ee3f47e1793de17494c /gcc/fold-const.c | |
parent | cd1588c4d60162730a103b6ca3a30139d88a57e3 (diff) | |
download | gcc-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