------- Comment #7 from kargl at gcc dot gnu dot org  2007-10-31 06:50 -------
(In reply to comment #6)
> Subject: Re:  gfortran: incorrect output for array of dynamic bounds
> 
> not like that. it's right to use a(j,i) which has j as lower dimension.
> memory layout of array(0:2, 0:1) is like:
> a(0,0), a(1,0), a(2,0), a(0,1), a(1,1), a(2,1)

You're not even close to the want the code is doing.

> the testcase is invalid for gfortran. I would close the bug report.
> 

The testcase is invalid for ALL Fortran compilers.  How many times
does one need to tell you that the code is invalid Fortran.  Period.

Again, add -fbounds-check to the compiler options and see what happens.
Try your code with other compilers and their strictest conformance and
debugging options.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33954

Reply via email to