summaryrefslogtreecommitdiff
path: root/parse.adb
diff options
context:
space:
mode:
authorBrian Drummond2013-12-02 17:18:57 +0000
committerBrian Drummond2013-12-02 17:18:57 +0000
commit1b8811469be10b058724a83f9dad8702de47d582 (patch)
tree9f1194d48290dff473bbb83306d2d68b4c20f446 /parse.adb
parent860a1de17cf5efab4c6db48fb28e6038d1584b81 (diff)
downloadghdl-1b8811469be10b058724a83f9dad8702de47d582.tar.gz
ghdl-1b8811469be10b058724a83f9dad8702de47d582.tar.bz2
ghdl-1b8811469be10b058724a83f9dad8702de47d582.zip
Minor fix for https://gna.org/support/?group=ghdl issues 3060 and 2686
Diffstat (limited to 'parse.adb')
-rw-r--r--parse.adb6
1 files changed, 5 insertions, 1 deletions
diff --git a/parse.adb b/parse.adb
index 81a3d51..ec25fa2 100644
--- a/parse.adb
+++ b/parse.adb
@@ -3984,8 +3984,12 @@ package body Parse is
when Iir_Kind_Simple_Name
| Iir_Kind_Selected_Name =>
Set_Implementation (Call, Name);
+ when Iir_Kind_Attribute_Name => -- Support issue 3060
+ Error_Msg_Parse ("Attribute cannot be applied to procedure call");
when others =>
- raise Internal_Error;
+ -- Support issue 2686 : no testcase, at least improve the error message
+ Error_Kind("parenthesis_name_to_procedure_call", Name);
+ -- raise Internal_Error;
end case;
return Res;
end Parenthesis_Name_To_Procedure_Call;