[Bug fortran/69360] loop optimization produces invalid code when a common array has dimension 1 in some files

2021-04-22 Thread johnnorthall263 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69360 --- Comment #6 from John Northall --- It's deliberate! I think with this level of understanding of fortran use in the real world commercial compilers have a bright future! If it works with dimension set to 2 (whatever the background true value)

[Bug fortran/69360] loop optimization produces invalid code when a common array has dimension 1 in some files

2021-04-16 Thread johnnorthall263 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69360 --- Comment #4 from John Northall --- O dear - that makes gfortran unusable on many existing codes - not really satisfactory is it? John On Fri, Apr 16, 2021 at 11:08 PM pinskia at gcc dot gnu.org < gcc-bugzi...@gcc.gnu.org> wrote: > https://gc

[Bug fortran/100123] New: -ftree-fre gives incorrect result in subroutine with array declared as length 1

2021-04-16 Thread johnnorthall263 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100123 Bug ID: 100123 Summary: -ftree-fre gives incorrect result in subroutine with array declared as length 1 Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severi