aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/evaluation.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-01-13 04:32:46 +0100
committerTristan Gingold <tgingold@free.fr>2017-01-13 18:57:25 +0100
commit1dfa4c3a364523c19cf9f5ff1b4bb00dda29b41e (patch)
tree31012366adb3d095b973a7c7e3b3be4519cc1f4e /src/vhdl/evaluation.adb
parent1283370d289abafce1c42d0c952b759578ae7ac1 (diff)
downloadghdl-1dfa4c3a364523c19cf9f5ff1b4bb00dda29b41e.tar.gz
ghdl-1dfa4c3a364523c19cf9f5ff1b4bb00dda29b41e.tar.bz2
ghdl-1dfa4c3a364523c19cf9f5ff1b4bb00dda29b41e.zip
vhdl08: implement 'subtype attribute
Fix #253
Diffstat (limited to 'src/vhdl/evaluation.adb')
-rw-r--r--src/vhdl/evaluation.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vhdl/evaluation.adb b/src/vhdl/evaluation.adb
index c09cac7d0..14e3d97db 100644
--- a/src/vhdl/evaluation.adb
+++ b/src/vhdl/evaluation.adb
@@ -3353,7 +3353,9 @@ package body Evaluation is
end;
when Iir_Kind_Subtype_Declaration
- | Iir_Kind_Base_Attribute =>
+ | Iir_Kind_Base_Attribute
+ | Iir_Kind_Subtype_Attribute
+ | Iir_Kind_Element_Attribute =>
Expr := Get_Type (Expr);
when Iir_Kind_Type_Declaration =>
Expr := Get_Type_Definition (Expr);