re PR c++/79360 (ICE with NSDMI and enum in union)
authorPatrick Palka <ppalka@gcc.gnu.org>
Tue, 7 Feb 2017 02:20:48 +0000 (02:20 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Tue, 7 Feb 2017 02:20:48 +0000 (02:20 +0000)
commitbb7d75ffce7a2ca526229b579666ceae01805f69
tree46f0838503c4e047dafbc502715a6f3ec8f4f341
parent10d22398b86c84be838cf3ff04302a3ee2ce726b
re PR c++/79360 (ICE with NSDMI and enum in union)

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.

From-SVN: r245239
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/nsdmi-union2.C [new file with mode: 0644]