re PR fortran/80142 (Warning: No location in expression ... with -O / -ffrontend...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 22 Mar 2017 15:20:17 +0000 (15:20 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 22 Mar 2017 15:20:17 +0000 (15:20 +0000)
commit918b6c9ec22543ced2487fd8780049f595a94b38
tree04d07422c565ded933af59995d6e0beebad319aa
parentb1fb3cb042fe2bb006c5382ab9e7c2aba24b786b
re PR fortran/80142 (Warning: No location in expression ... with -O / -ffrontend-optimize)

2017-03-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/80142
* frontend-passes.c (combine_array_constructor): Take
location of new expression from constructor expression instead
of constructor.

2017-03-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/80142
* gfortran.dg/any_loc.f90: New test case.

From-SVN: r246388
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/any_loc.f90 [new file with mode: 0644]