re PR fortran/80164 (ICE in gfc_format_decoder at gcc/fortran/error.c:933)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 28 Jun 2017 02:17:40 +0000 (02:17 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 28 Jun 2017 02:17:40 +0000 (02:17 +0000)
commit8801653208ef13e4762d907971e3a6b83a8e721e
treeca58e617c6fd755c861d477ebdd092e0b97531b9
parent2d4800a136d33899f4d8edc23520854777780a97
re PR fortran/80164 (ICE in gfc_format_decoder at gcc/fortran/error.c:933)

2017-06-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/80164
* trans-stmt.c (gfc_trans_call): If no code expr, use code->loc
as warning/error locus.

* gfortran.dg/array_temporaries_4.f90: New test.

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