]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/58618 (Wrong code with character substring and ASSOCIATE)
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 18 Oct 2018 10:37:39 +0000 (10:37 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 18 Oct 2018 10:37:39 +0000 (10:37 +0000)
commit75cdd535b1a47abdfc60a2950367fd4de7fae8ab
tree844e2779d07158b3f36767db7d316ce52f377f96
parent75a6d7da396ca7cecdc1b0e977203bb58a8ca024
re PR fortran/58618 (Wrong code with character substring and ASSOCIATE)

2018-10-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/58618
* trans-stmt.c (trans_associate_var): All strings that return
as pointer types can be assigned directly to the associate
name so remove 'attr' and the condition that uses it.

2018-10-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/58618
* gfortran.dg/associate_45.f90 : New test.

From-SVN: r265264
gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/associate_45.f90 [new file with mode: 0644]