aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-11-12 07:23:05 +0100
committerTristan Gingold <tgingold@free.fr>2016-11-12 07:23:05 +0100
commit1433fe496f76df04732614de9dc4868e482eaf10 (patch)
treea19bc7729658cc2e0c95cbf657c888ae4f7b152a /src/vhdl
parentf4a054e86738cd261d05858334f731535f9cc702 (diff)
downloadghdl-1433fe496f76df04732614de9dc4868e482eaf10.tar.gz
ghdl-1433fe496f76df04732614de9dc4868e482eaf10.tar.bz2
ghdl-1433fe496f76df04732614de9dc4868e482eaf10.zip
improve error message for a procedure call within an expression.
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/sem_names.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb
index 26672b385..df7fdf636 100644
--- a/src/vhdl/sem_names.adb
+++ b/src/vhdl/sem_names.adb
@@ -2645,7 +2645,8 @@ package body Sem_Names is
when Iir_Kind_Procedure_Declaration
| Iir_Kind_Interface_Procedure_Declaration =>
- Error_Msg_Sem (+Name, "function name is a procedure");
+ Error_Msg_Sem (+Name, "cannot call %n in an expression",
+ +Prefix);
when Iir_Kinds_Process_Statement
| Iir_Kind_Component_Declaration