aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2013-12-29 11:51:30 +0100
committerTristan Gingold <tgingold@free.fr>2013-12-29 11:51:30 +0100
commitc8ec04b7ddb029a08bb065cb96902c2fcbfde335 (patch)
tree0c9c7f0c90443cb94ac8df93c0acd6bcf4bc2260
parentb996221b72ca5e8e561de820710b665050467cde (diff)
downloadghdl-c8ec04b7ddb029a08bb065cb96902c2fcbfde335.tar.gz
ghdl-c8ec04b7ddb029a08bb065cb96902c2fcbfde335.tar.bz2
ghdl-c8ec04b7ddb029a08bb065cb96902c2fcbfde335.zip
Improve error message.
-rw-r--r--parse.adb9
1 files changed, 7 insertions, 2 deletions
diff --git a/parse.adb b/parse.adb
index 6410edd3b..ca5640455 100644
--- a/parse.adb
+++ b/parse.adb
@@ -948,8 +948,13 @@ package body Parse is
end if;
Inter := Create_Iir (Iir_Kind_File_Interface_Declaration);
when Tok_Right_Paren =>
- Error_Msg_Parse
- ("extra ';' at end of interface list", Prev_Loc);
+ if Res = Null_Iir then
+ Error_Msg_Parse
+ ("empty interface list not allowed", Prev_Loc);
+ else
+ Error_Msg_Parse
+ ("extra ';' at end of interface list", Prev_Loc);
+ end if;
exit;
when others =>
Error_Msg_Parse