This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79360] [5/6/7 Regression] ICE with NSDMI and enum in union
- From: "ppalka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 07 Feb 2017 02:21:24 +0000
- Subject: [Bug c++/79360] [5/6/7 Regression] ICE with NSDMI and enum in union
- Auto-submitted: auto-generated
- References: <bug-79360-4@http.gcc.gnu.org/bugzilla/>
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