[Bug fortran/85387] [8 Regression] incorrect output with optimization /= 0

2018-04-14 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85387

Thomas Koenig  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Thomas Koenig  ---
Fixed, closing.

Thanks for the bug report!

[Bug fortran/85387] [8 Regression] incorrect output with optimization /= 0

2018-04-14 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85387

--- Comment #2 from Thomas Koenig  ---
Author: tkoenig
Date: Sat Apr 14 13:38:41 2018
New Revision: 259384

URL: https://gcc.gnu.org/viewcvs?rev=259384=gcc=rev
Log:
2018-04-14  Thomas Koenig  

PR fortran/85387
* frontend-passes.c (traverse_io_block): Check for start, end or
stride being defined by an outer implied DO loop.

2018-04-14  Thomas Koenig  

PR fortran/85387
* gfortran.dg/implied_do_io_5.f90: New test.


Added:
trunk/gcc/testsuite/gfortran.dg/implied_do_io_5.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/frontend-passes.c
trunk/gcc/testsuite/ChangeLog

[Bug fortran/85387] [8 Regression] incorrect output with optimization /= 0

2018-04-14 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85387

Thomas Koenig  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |tkoenig at gcc dot 
gnu.org

[Bug fortran/85387] [8 Regression] incorrect output with optimization /= 0

2018-04-13 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85387

Dominique d'Humieres  changed:

   What|Removed |Added

   Priority|P3  |P4
 Status|UNCONFIRMED |NEW
  Known to work||7.3.0
   Keywords||wrong-code
   Last reconfirmed||2018-04-13
 CC||tkoenig at gcc dot gnu.org
   Host|x86_64-pc-linux-gnu |
 Ever confirmed|0   |1
Summary|incorrect output with   |[8 Regression] incorrect
   |optimization /= 0   |output with optimization /=
   ||0
   Target Milestone|--- |8.0
  Known to fail||8.0.1

--- Comment #1 from Dominique d'Humieres  ---
Confirmed. The code works as expected ig compiled with -fno-frontend-optimize.

The change appeared between revisions r248853 (2017-06-03, OK) and r249632
(2017-06-25, wrong), likely r248877 (pr35339) or its sequel r249092 (pr80988).