re PR fortran/60718 (Test case gfortran.dg/select_type_4.f90 fails on ARM)
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 10 Dec 2014 15:29:19 +0000 (15:29 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Wed, 10 Dec 2014 15:29:19 +0000 (15:29 +0000)
commit301375fdd557a3ae056580ee3f692ce2bbcc67ad
tree9846d76a16419247ccbfb3e90de4017076721789
parentd7290d1cf47c1b910823af3d42075a76b46b0c31
re PR fortran/60718 (Test case gfortran.dg/select_type_4.f90 fails on ARM)

2014-12-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>

PR fortran/60718
* trans-expr.c (gfc_conv_procedure_call): Fix a strict aliasing
violation when passing a class object to a formal parameter which has
different pointer or allocatable attributes.

testsuite:
2014-12-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>

PR fortran/60718
* gfortran.dg/class_alias.f90: New.

From-SVN: r218584
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_alias.f90 [new file with mode: 0644]