[Bug libfortran/87000] LBOUND and UBOUND give unexpected result for arrays without 1-based indices if in subprogram

2018-08-17 Thread gavin.keith.ridley at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87000 --- Comment #2 from Gavin Ridley --- OK, I see, thank you. I believe you're right on that. When I tried to make this example, I cut out an important part that seems to cause the difference between gcc compiler versions. This code: program asdf

[Bug libfortran/87000] New: LBOUND and UBOUND give unexpected result for arrays without 1-based indices if in subprogram

2018-08-17 Thread gavin.keith.ridley at gmail dot com
Severity: normal Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: gavin.keith.ridley at gmail dot com Target Milestone: --- If an array is allocated with indices that don't start at one, lbound and ubound seem to