diff --git a/Changes b/Changes index fd82726a6..fc0a6cabb 100644 --- a/Changes +++ b/Changes @@ -7,6 +7,8 @@ indicates the contributor was also the author of the fix; Thanks! *** Support case inside, bug708. [Jan Egil Ruud] +**** Fix array bound checks on real variables. + * Verilator 3.855 2014-01-18 diff --git a/src/V3Unknown.cpp b/src/V3Unknown.cpp index 49033f7f4..f44523f74 100644 --- a/src/V3Unknown.cpp +++ b/src/V3Unknown.cpp @@ -126,7 +126,7 @@ private: else { string name = ((string)"__Vlvbound"+cvtToStr(m_modp->varNumGetInc())); AstVar* varp = new AstVar(fl, AstVarType::MODULETEMP, name, - VFlagLogicPacked(), prep->width()); + prep->dtypep()); m_modp->addStmtp(varp); AstNode* abovep = prep->backp(); // Grab above point before lose it w/ next replace