This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33954] gfortran: incorrect output for array of dynamic bounds
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2007 06:50:39 -0000
- Subject: [Bug fortran/33954] gfortran: incorrect output for array of dynamic bounds
- References: <bug-33954-15289@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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