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++/53761] ICE on incorrect transparent union (first field has floating point type)


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

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-10-25 16:15:19 UTC ---
Author: paolo
Date: Thu Oct 25 16:14:59 2012
New Revision: 192814

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

    PR c++/53761
    * class.c (finish_struct_1): Reject aggregates decorated with
    __transparent_union__ which cannot be made transparent because
    the type of the first field has a different ABI from the class
    overall.

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

    PR c++/53761
    * g++.dg/ext/transparent-union.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/ext/transparent-union.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]