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++/60184] g++ does not allow static members of named unions


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60184

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Jun  6 16:01:37 2014
New Revision: 211318

URL: http://gcc.gnu.org/viewcvs?rev=211318&root=gcc&view=rev
Log:
/cp
2014-06-06  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/60184
    * class.c (check_field_decls): In C++11 mode do not reject
    static data members and reference-type members in unions.

/testsuite
2014-06-06  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/60184
    * g++.dg/cpp0x/constexpr-union6.C: New.
    * g++.dg/cpp0x/union6.C: Likewise.
    * g++.dg/init/ref14.C: Adjust.
    * g++.dg/init/union1.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-union6.C
    trunk/gcc/testsuite/g++.dg/cpp0x/union6.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/init/ref14.C
    trunk/gcc/testsuite/g++.dg/init/union1.C


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