re PR c++/53761 (ICE on incorrect transparent union (first field has floating point...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 25 Oct 2012 16:14:59 +0000 (16:14 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 25 Oct 2012 16:14:59 +0000 (16:14 +0000)
commit42b40eff8019d80a429d26616e80db96f1cb882c
tree64f3e00ee1e86736bdb2e4f38aaf2db7d77e5611
parentf14edc1af5f9149d913221f39dc96980d7ac73a2
re PR c++/53761 (ICE on incorrect transparent union (first field has floating point type))

/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.

From-SVN: r192814
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/transparent-union.C [new file with mode: 0644]