This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53761] ICE on incorrect transparent union (first field has floating point type)
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 25 Oct 2012 16:15:19 +0000
- Subject: [Bug c++/53761] ICE on incorrect transparent union (first field has floating point type)
- Auto-submitted: auto-generated
- References: <bug-53761-4@http.gcc.gnu.org/bugzilla/>
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