Fix file/line reported for duplicate parameter declarations.

We need to retain the old parameter information until we have reported
the error.
This commit is contained in:
Martin Whitaker
2019-09-27 22:19:30 +01:00
parent d3bced57cc
commit 628f5645bf
5 changed files with 74 additions and 71 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ class Module : public PScopeExtra, public PNamedItem {
/* specparams are simpler than other parameters, in that they
can have a range, but not an explicit type. The restrictions
are enforced by the parser. */
map<perm_string,param_expr_t>specparams;
map<perm_string,param_expr_t*>specparams;
/* The module also has defparam assignments which don't create
new parameters within the module, but may be used to set