[Bug fortran/106684] inconsistent array initialization

sgk at troutmask dot apl.washington.edu gcc-bugzilla@gcc.gnu.org
Fri Aug 19 18:30:05 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106684

--- Comment #4 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Fri, Aug 19, 2022 at 06:01:46PM +0000, jorn@bolding-bruggeman.com wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106684
> 
> --- Comment #2 from Jorn Bruggeman <jorn@bolding-bruggeman.com> ---
> 
> Are you effectively saying that 10.3 and 11.2 (as well as all ifort versions I
> am aware of) are too forgiving in both cases (accepting data of different rank
> as long at the totals number of elements is the same), while 10.4 and 11.3 are
> still too forgiving when it comes to stand-alone array variables?
> 

What I am saying is that the code is nonconforming.  Intel
and older versions of gfortran do not detect or report the
nonconformance.  Newer versions of gfortran have grown an
ability to detect the shape mismatch in your code and so
reported an error.  ifort might flag an issue if you give
it the right option to request strict standard conformance.

I don't know want you mean be stand-alone variable.  The program
I posted shows the non-conformance due to different shapes.


More information about the Gcc-bugs mailing list