This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/80142] [7 Regression] Warning: No location in expression ... with -O / -ffrontend-optimize
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Mar 2017 15:20:48 +0000
- Subject: [Bug fortran/80142] [7 Regression] Warning: No location in expression ... with -O / -ffrontend-optimize
- Auto-submitted: auto-generated
- References: <bug-80142-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80142
--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Wed Mar 22 15:20:17 2017
New Revision: 246388
URL: https://gcc.gnu.org/viewcvs?rev=246388&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/any_loc.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/frontend-passes.c
trunk/gcc/testsuite/ChangeLog