Issue 98877
Summary [flang][debuginfo] Low bound of 1 is used for fixed size arrays.
Labels flang
Assignees abidh
Reporter abidh
    Consider the following program. 
```
PROGRAM minimal
  integer arr(-2:3)
 arr(:) = 1
  print *, arr
end
```

When stopped at line `print *, arr`, we can get the contents of the array correctly. But the lower bound is always set to 1 instead of what was provided in the source. This can be seen in the output of `ptype` command and also in the error when we try to get the value of `arr(-1)`.

```
(gdb) p arr
$1 = (1, 1, 1, 1, 1, 1)
(gdb) ptype arr
type = integer (6)
(gdb) p arr(-1)
no such vector element
```

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to