diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-08-04 18:46:22 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-08-04 18:46:22 +0200 |
commit | c1f5f40de1a580ff708122b8f1a5e2f8d9e7cdc3 (patch) | |
tree | 21af9f1701f1a5f2b4c57802bc5a2dc7842f9634 /src/grt/grt-disp_rti.adb | |
parent | 8d61edaf274ff80d2b185c0af34f30efa73d969a (diff) | |
download | ghdl-c1f5f40de1a580ff708122b8f1a5e2f8d9e7cdc3.tar.gz ghdl-c1f5f40de1a580ff708122b8f1a5e2f8d9e7cdc3.tar.bz2 ghdl-c1f5f40de1a580ff708122b8f1a5e2f8d9e7cdc3.zip |
grt: fix crash in --dump-rti for array of unbounded records.
For #1420
Diffstat (limited to 'src/grt/grt-disp_rti.adb')
-rw-r--r-- | src/grt/grt-disp_rti.adb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/grt/grt-disp_rti.adb b/src/grt/grt-disp_rti.adb index 045ac6fb5..38f4d34f7 100644 --- a/src/grt/grt-disp_rti.adb +++ b/src/grt/grt-disp_rti.adb @@ -230,9 +230,7 @@ package body Grt.Disp_Rti is Put (Stream, ", "); end if; if Index = Last_Idx then - -- Humm, not always an array, and BOUNDS may not be followed - -- by subelement bounds. - Bounds2 := Array_Layout_To_Bounds (Bounds); + Bounds2 := Array_Layout_To_Element (Bounds, El_Rti); Disp_Value (Stream, El_Rti, Ctxt, Obj, Bounds2, Is_Sig); else Bounds2 := Bounds; |