diff --git a/Changes b/Changes index c6c0b2af0..afd0011fa 100644 --- a/Changes +++ b/Changes @@ -7,6 +7,8 @@ indicates the contributor was also the author of the fix; Thanks! **** Fix --lint-only with MinGW, msg1283. [HyungKi Jeong] +**** Fix some delayed assignments of typedefed unpacked arrays. + * Verilator 3.854 2013-11-26 diff --git a/src/V3AstNodes.h b/src/V3AstNodes.h index 147501b76..cdf9c249d 100644 --- a/src/V3AstNodes.h +++ b/src/V3AstNodes.h @@ -685,9 +685,9 @@ private: unsigned m_start; unsigned m_length; void init(AstNode* fromp) { - if (fromp && fromp->dtypep()->castNodeArrayDType()) { + if (fromp && fromp->dtypep()->skipRefp()->castNodeArrayDType()) { // Strip off array to find what array references - dtypeFrom(fromp->dtypep()->castNodeArrayDType()->subDTypep()); + dtypeFrom(fromp->dtypep()->skipRefp()->castNodeArrayDType()->subDTypep()); } } public: