<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/113178>113178</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[flang][debug] Lower bound of array for derived type member is ignored.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
abidh
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
abidh
</td>
</tr>
</table>
<pre>
Consider the following program.
```
module m
type t1
integer :: elm(2:6)
end type
type(t1) :: var
end module
program test
use m
var%elm(:) = 2
print *, var%elm
end
```
The stopped at the print line, this is what GDB shows for the type of `elm` while it should have been `type = integer (2:6)`
```
(gdb) ptype var%elm
type = integer (5)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsU02PozAM_TXhYk0VzFc5cOhM1b3scf9A0hjIKhCUhFbz71cJdKY7qlSlmDw_Pz8b4b0eZqKOVe8MUUitRobIqnMm1jBa16VXmbTqs_uws9eKHISRoLfG2LueB1icHZyYDoyfGT_tZ833Xwonq1ZDMG0RhM-FIOR7BKDnQAM5YMWJFScgMzE8IitONcP2gaJZpcQnDobHkDNsH4k34bbbiN1qPovahUIgHx6sq_-WlfKx2spHysR8BnzcL07PARieGH48gR8lX7a-nX9GAh_sspACEZKBG5nRM0W2MGoP2sN9FAF-nd_Bj_buobeb28kx2wOreaxYc7iP2hDoEIGrUTCKG4EkmiMmwaP0L2ef_Pxf2U-5eByUjJ0vieRHl6-Iq68hvWTMVFeotmhFRl3eYFthUZVtNnZ4xba9Vtei6IuSV31fNw0v8yv1FclSqUx3yLHMOeZ5lSMeDzk2DUdJKHndNEXNSk6T0OZgzG06WDdk2vuVujwv8uaYGSHJ-H21eyPmYV9t18WEN7kOnpXcaB_8N0XQwaTvYcuozqx6VyTX-Ai_7Z0cSLvOKo5DOCc-05AUOX2jbUNhokmSi-PUw2wdqUO2OtONISw-7dWF4WXQYVzl4WonhpdYff97W5z9S9fA8JK68Qwve0O3Dv8FAAD___IlFNU">