Fix line number in dup vars.
This commit is contained in:
parent
009f053d6e
commit
af5616c077
|
|
@ -947,7 +947,7 @@ class LinkDotFindVisitor : public AstNVisitor {
|
|||
nodep->v3error("Duplicate declaration of signal: "
|
||||
<<nodep->prettyName()<<endl
|
||||
<<(ansiWarn
|
||||
? findvarp->warnMore()+"... note: ANSI ports must have type declared with the I/O (IEEE 2017 23.2.2.2)\n"
|
||||
? nodep->warnMore()+"... note: ANSI ports must have type declared with the I/O (IEEE 2017 23.2.2.2)\n"
|
||||
: "")
|
||||
<<nodep->warnContextPrimary()<<endl
|
||||
<<findvarp->warnMore()<<"... Location of original declaration"<<endl
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
%Error: t/t_var_dup2_bad.v:12: Duplicate declaration of signal: bad_o_w
|
||||
t/t_var_dup2_bad.v:9: ... note: ANSI ports must have type declared with the I/O (IEEE 2017 23.2.2.2)
|
||||
t/t_var_dup2_bad.v:12: ... note: ANSI ports must have type declared with the I/O (IEEE 2017 23.2.2.2)
|
||||
t/t_var_dup2_bad.v:9: ... Location of original declaration
|
||||
%Error: t/t_var_dup2_bad.v:13: Duplicate declaration of signal: bad_o_r
|
||||
t/t_var_dup2_bad.v:10: ... Location of original declaration
|
||||
|
|
|
|||
Loading…
Reference in New Issue