Fix line number in dup vars.

This commit is contained in:
Wilson Snyder 2019-06-28 21:42:49 -04:00
parent 009f053d6e
commit af5616c077
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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