diff --git a/Changes b/Changes index 7944b2a17..c8e12875b 100644 --- a/Changes +++ b/Changes @@ -9,6 +9,8 @@ The contributors that suggested a given feature are shown in []. Thanks! **** Fix error on bad interface name, bug1097. [Todd Strader] +**** Fix type parameters with low optimization, bug1101. [Stefan Wallentowitz] + * Verilator 3.888 2016-10-14 diff --git a/src/V3Param.cpp b/src/V3Param.cpp index 091292c1e..26c814f4e 100644 --- a/src/V3Param.cpp +++ b/src/V3Param.cpp @@ -128,6 +128,10 @@ private: varp->user4(usedLetter[static_cast(ch)]*256 + ch); usedLetter[static_cast(ch)]++; } + } else if (AstParamTypeDType* typep = stmtp->castParamTypeDType()) { + char ch = 'T'; + typep->user4(usedLetter[static_cast(ch)]*256 + ch); + usedLetter[static_cast(ch)]++; } } }