[Bug fortran/56691] Allocatable array of extended type, wrong indexes after passing to a subroutine

carlo.defalco at polimi dot it gcc-bugzilla@gcc.gnu.org
Fri Mar 22 17:16:00 GMT 2013


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

carlo <carlo.defalco at polimi dot it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlo.defalco at polimi dot
                   |                            |it

--- Comment #1 from carlo <carlo.defalco at polimi dot it> 2013-03-22 17:15:59 UTC ---
It does indeed look as if 0-based indexing is being erroneously used:

  call x%lcb(work(0:3))

prints:

 Call with array slice: off by 1
 Inside LCB: size is            4
 Show: f1    1.00000000    
 Show: f1    2.00000000    
 Show: f1    3.00000000    
 Show: f1    4.00000000



More information about the Gcc-bugs mailing list