diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-01-02 04:16:49 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-01-02 05:13:45 +0100 |
commit | 0e0c3efd5e7a375329982f293e85c01d254eaac1 (patch) | |
tree | 6e864b789277a1e999276cc5d1f72bf74d2f3cdb /src/vhdl/sem_names.adb | |
parent | 4a5a130ce205020db83631c631a79dc0444aec88 (diff) | |
download | ghdl-0e0c3efd5e7a375329982f293e85c01d254eaac1.tar.gz ghdl-0e0c3efd5e7a375329982f293e85c01d254eaac1.tar.bz2 ghdl-0e0c3efd5e7a375329982f293e85c01d254eaac1.zip |
iirs: renames Iir_Kinds_Scalar_Type_Definition
Diffstat (limited to 'src/vhdl/sem_names.adb')
-rw-r--r-- | src/vhdl/sem_names.adb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb index b7c4a41b9..76dce228f 100644 --- a/src/vhdl/sem_names.adb +++ b/src/vhdl/sem_names.adb @@ -2903,7 +2903,8 @@ package body Sem_Names is case Id is when Name_Image | Name_Value => - if Get_Kind (Prefix_Type) not in Iir_Kinds_Scalar_Type_Definition + if Get_Kind (Prefix_Type) + not in Iir_Kinds_Scalar_Type_And_Subtype_Definition then Error_Msg_Sem (+Attr, "prefix of %i attribute must be a scalar type", @@ -3145,7 +3146,7 @@ package body Sem_Names is end case; case Get_Kind (Prefix_Type) is - when Iir_Kinds_Scalar_Type_Definition => + when Iir_Kinds_Scalar_Type_And_Subtype_Definition => -- Note: prefix is a scalar type or subtype. return Sem_Predefined_Type_Attribute (Attr); when Iir_Kinds_Array_Type_Definition => |