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++/32054] Storage classes on anonymous unions in classes


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32054

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-05-25 23:40:17 UTC ---
Author: paolo
Date: Fri May 25 23:40:10 2012
New Revision: 187902

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187902
Log:
/cp
2012-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/32054
    * parser.c (cp_parser_member_declaration): A storage class is not
    allowed in a declaration of an anonymous aggregate in a class scope.

/testsuite
2012-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/32054
    * g++.dg/other/anon-union3.C: New.


Added:
    trunk/gcc/testsuite/g++.dg/other/anon-union3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.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]