diff options
author | Tristan Gingold <tgingold@free.fr> | 2013-12-29 11:51:30 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2013-12-29 11:51:30 +0100 |
commit | c8ec04b7ddb029a08bb065cb96902c2fcbfde335 (patch) | |
tree | 0c9c7f0c90443cb94ac8df93c0acd6bcf4bc2260 | |
parent | b996221b72ca5e8e561de820710b665050467cde (diff) | |
download | ghdl-c8ec04b7ddb029a08bb065cb96902c2fcbfde335.tar.gz ghdl-c8ec04b7ddb029a08bb065cb96902c2fcbfde335.tar.bz2 ghdl-c8ec04b7ddb029a08bb065cb96902c2fcbfde335.zip |
Improve error message.
-rw-r--r-- | parse.adb | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |