This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/79360] [5/6/7 Regression] ICE with NSDMI and enum in union


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]