Add SELRANGE as warning instead of error, bug477.

This commit is contained in:
Wilson Snyder
2012-04-04 21:55:20 -04:00
parent 76f3cbdf4c
commit 6a38d3bcf3
7 changed files with 122 additions and 2 deletions
+1 -1
View File
@@ -385,7 +385,7 @@ private:
else if ((nodep->msbConst() > bdtypep->msbMaxSelect())
|| (nodep->lsbConst() > bdtypep->msbMaxSelect())) {
// See also warning in V3Width
nodep->v3error("Selection index out of range: "
nodep->v3warn(SELRANGE, "Selection index out of range: "
<<nodep->msbConst()<<":"<<nodep->lsbConst()
<<" outside "<<bdtypep->msbMaxSelect()<<":0"
<<(bdtypep->lsb()>=0 ? ""