Re: [patch, fortran] Fix PR 84697

2018-03-06 Thread Steve Kargl
On Tue, Mar 06, 2018 at 10:40:14PM +0100, Thomas Koenig wrote: > > the attached patch fixes a bug, partly an 8 regression, for > simplifying an expression containing minloc or maxloc. > > The underlying problem was that > > integer, dimension(0), parameter :: z=0 > > ended up as EXPR_CONST

[patch, fortran] Fix PR 84697

2018-03-06 Thread Thomas Koenig
Hello world, the attached patch fixes a bug, partly an 8 regression, for simplifying an expression containing minloc or maxloc. The underlying problem was that integer, dimension(0), parameter :: z=0 ended up as EXPR_CONSTANT even though the rank was one, which was then passed to the simpl