summaryrefslogtreecommitdiff
path: root/src/ortho/debug
diff options
context:
space:
mode:
authorTristan Gingold2015-06-12 08:03:24 +0200
committerTristan Gingold2015-06-12 08:03:24 +0200
commit8a3f67db595be25637b4edc65f18138b48ccdac6 (patch)
tree7988fec65793fd9b71a9030a42839f40879f5cbf /src/ortho/debug
parente726be425740402ab57e91a66d2cd8b812974bf4 (diff)
downloadghdl-8a3f67db595be25637b4edc65f18138b48ccdac6.tar.gz
ghdl-8a3f67db595be25637b4edc65f18138b48ccdac6.tar.bz2
ghdl-8a3f67db595be25637b4edc65f18138b48ccdac6.zip
ortho: allow selected element from an union.
Minor cleanups.
Diffstat (limited to 'src/ortho/debug')
-rw-r--r--src/ortho/debug/ortho_debug.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ortho/debug/ortho_debug.adb b/src/ortho/debug/ortho_debug.adb
index ca67b33..b1ec1b6 100644
--- a/src/ortho/debug/ortho_debug.adb
+++ b/src/ortho/debug/ortho_debug.adb
@@ -967,7 +967,9 @@ package body Ortho_Debug is
is
subtype O_Lnode_Selected_Element is O_Lnode_Type (OL_Selected_Element);
begin
- if Rec.Rtype.Kind /= ON_Record_Type then
+ if Rec.Rtype.Kind /= ON_Record_Type
+ and then Rec.Rtype.Kind /= ON_Union_Type
+ then
raise Type_Error;
end if;
if Rec.Rtype /= El.Parent then