[Bug fortran/106684] New: inconsistent array initialization

2022-08-19 Thread jorn--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106684 Bug ID: 106684 Summary: inconsistent array initialization Product: gcc Version: 10.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug fortran/106684] inconsistent array initialization

2022-08-19 Thread jorn--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106684 --- Comment #2 from Jorn Bruggeman --- I interpret the quoted F2018, 7.5.10 as "the same rules should govern initialization of components of derived types and initialization of stand-alone variables". That was previously (in 10.3, 11.2, and othe

[Bug fortran/106684] inconsistent array initialization

2022-08-19 Thread jorn--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106684 --- Comment #5 from Jorn Bruggeman --- Thanks; it does look like older gfortran versions (and ifort) are too forgiving here, and that, given the F2018 definition of "conformable", the latest gfortran releases are correct. As for "stand-alone" v

[Bug fortran/106684] inconsistent array initialization

2022-08-19 Thread jorn--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106684 --- Comment #7 from Jorn Bruggeman --- None from me; thanks for the explanation!