re PR fortran/78619 (ICE in copy_reference_ops_from_ref, at tree-ssa-sccvn.c:889)
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 9 Nov 2017 19:12:41 +0000 (19:12 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 9 Nov 2017 19:12:41 +0000 (19:12 +0000)
commit6e307219b955b80e6669acadae72c183f0eda248
tree4afaf01334bb2ba941218b9e57539348c63c514c
parent1fb84d5b0a2dcdb8fd5aa39680df651811d55fbb
re PR fortran/78619 (ICE in copy_reference_ops_from_ref, at tree-ssa-sccvn.c:889)

2017-11-09  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/78619
* check.c (same_type_check): Introduce a new argument 'assoc'
with default value false. If this is true, use the symbol type
spec of BT_PROCEDURE expressions.
(gfc_check_associated): Set 'assoc' true in the call to
'same_type_check'.

2017-11-09  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/78619
* gfortran.dg/pr78619.f90: New test.

From-SVN: r254605
gcc/fortran/ChangeLog
gcc/fortran/check.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr78619.f90 [new file with mode: 0644]