OSDN Git Service

/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Oct 2012 16:14:59 +0000 (16:14 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Oct 2012 16:14:59 +0000 (16:14 +0000)
commit1ca4bd4a650994c359974198c534b20fec92e372
tree64f3e00ee1e86736bdb2e4f38aaf2db7d77e5611
parentecb10e6a777c616a80b4b2d36eb3b6978a638ac3
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192814 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/transparent-union.C [new file with mode: 0644]