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++/66644] Rejects C++11 in-class anonymous union members initialization


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

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