[Bug c++/66644] Rejects C++11 in-class anonymous union members initialization
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Apr 30 00:01:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66644
--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Sat Apr 30 00:00:51 2016
New Revision: 235662
URL: https://gcc.gnu.org/viewcvs?rev=235662&root=gcc&view=rev
Log:
/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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi-anon-struct1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list