aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-02-24 19:43:27 +0100
committerTristan Gingold <tgingold@free.fr>2017-02-24 19:43:27 +0100
commita1567ab51d27b9a660d795282be41aadee48b4e2 (patch)
tree174109adb9efa91d1b27764704091942cb7b4d0b
parent674ed3b773ad9249983cb47f986dcf1537420e68 (diff)
downloadghdl-a1567ab51d27b9a660d795282be41aadee48b4e2.tar.gz
ghdl-a1567ab51d27b9a660d795282be41aadee48b4e2.tar.bz2
ghdl-a1567ab51d27b9a660d795282be41aadee48b4e2.zip
Eval_Array_Attribute: Handle 'Subtype.
Fix #273
-rw-r--r--src/vhdl/evaluation.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/evaluation.adb b/src/vhdl/evaluation.adb
index 1f865a84d..85c99209f 100644
--- a/src/vhdl/evaluation.adb
+++ b/src/vhdl/evaluation.adb
@@ -1713,7 +1713,8 @@ package body Evaluation is
| Iir_Kind_Implicit_Dereference
| Iir_Kind_Function_Call
| Iir_Kind_Attribute_Value
- | Iir_Kind_Attribute_Name =>
+ | Iir_Kind_Attribute_Name
+ | Iir_Kind_Subtype_Attribute =>
Prefix_Type := Get_Type (Prefix);
when Iir_Kinds_Subtype_Definition =>
Prefix_Type := Prefix;