aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/parse.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/parse.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/parse.adb')
-rw-r--r--src/vhdl/parse.adb5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vhdl/parse.adb b/src/vhdl/parse.adb
index 2dc07d326..3adf845e2 100644
--- a/src/vhdl/parse.adb
+++ b/src/vhdl/parse.adb
@@ -747,8 +747,11 @@ package body Parse is
return Res;
elsif Current_Token /= Tok_Range
and then Current_Token /= Tok_Identifier
+ and then not (Vhdl_Std >= Vhdl_08
+ and then Current_Token = Tok_Subtype)
then
- Expect (Tok_Identifier, "required for an attribute name");
+ Expect
+ (Tok_Identifier, "attribute identifier expected after '");
return Null_Iir;
end if;
Res := Create_Iir (Iir_Kind_Attribute_Name);