From 6ce96ccb6869c0d988d57da6e0ea7d01d639a7ae Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Mon, 6 Dec 2010 20:27:27 +0000 Subject: [PATCH] Report error for user functions in parameter expressions. Constant user functions aren't currently supported. A suitable error message should be output when a user function call is encountered in a parameter expression. This got lost in the parameter expression rework. --- elab_expr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elab_expr.cc b/elab_expr.cc index fb69dcfab..cc6a59693 100644 --- a/elab_expr.cc +++ b/elab_expr.cc @@ -1524,7 +1524,7 @@ NetExpr* PECallFunction::elaborate_expr(Design*des, NetScope*scope, // We do not currently support constant user function and // this is where things fail because of that, though we // don't know for sure so we need to display both messages. - if (need_constant_expr) { + if (need_constant_expr || is_param_expr) { cerr << get_fileline() << ": sorry: constant user " "functions are not currently supported: " << path_ << "()." << endl << " or" << endl;