Re: [fortran, patch] Substring simplification fix

2011-11-08 Thread Steve Kargl
On Tue, Nov 08, 2011 at 11:46:14PM +0100, FX wrote: > Substrings can't have length of less than zero (i.e. negative length). For > example, "foo"(:-1) is the same as "foo"(:0) and "foo"(2:1); all are > zero-length strings. The patch for PR 48876 fixed part of an issue of > substring simplificati

[fortran, patch] Substring simplification fix

2011-11-08 Thread FX
Substrings can't have length of less than zero (i.e. negative length). For example, "foo"(:-1) is the same as "foo"(:0) and "foo"(2:1); all are zero-length strings. The patch for PR 48876 fixed part of an issue of substring simplification, making sure the endpoint of the substring is never less