re PR c++/66644 (Rejects C++11 in-class anonymous union members initialization)
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 30 Apr 2016 00:00:51 +0000 (00:00 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 30 Apr 2016 00:00:51 +0000 (00:00 +0000)
commit411e5c675d26d342493d8dba910c3887c8846257
treeadedee90aeaee51ba2ab43c501ad598dac10d6ec
parent63ce14e03b93e351286c9c7b0d20abb5d85b0f20
re PR c++/66644 (Rejects C++11 in-class anonymous union members initialization)

/cp
2016-04-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/66644
* class.c (check_field_decl): Remove final int* parameter, change
the return type to bool; fix logic in order not to reject multiple
initialized fields in anonymous struct.
(check_field_decls): Adjust call.

/testsuite
2016-04-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/66644
* g++.dg/cpp0x/nsdmi-anon-struct1.C: New.

From-SVN: r235662
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nsdmi-anon-struct1.C [new file with mode: 0644]