https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79360

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Tue Feb  7 02:20:48 2017
New Revision: 245239

URL: https://gcc.gnu.org/viewcvs?rev=245239&root=gcc&view=rev
Log:
Fix PR c++/79360

gcc/cp/ChangeLog:

        PR c++/79360
        * typeck2.c (process_init_constructor_union): Consider only
        FIELD_DECLs when looking for an NSDMI.

gcc/testsuite/ChangeLog:

        PR c++/79360
        * g++.dg/cpp1y/nsdmi-union2.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/nsdmi-union2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to