diff --git a/elab_sig.cc b/elab_sig.cc index a726f22e8..f4e26c5bd 100644 --- a/elab_sig.cc +++ b/elab_sig.cc @@ -1155,7 +1155,7 @@ NetNet* PWire::elaborate_sig(Design*des, NetScope*scope) const list unpacked_dimensions; // If this is an unpacked array extract the base type and unpacked // dimensions as these are separate properties of the NetNet. - if (const netuarray_t *atype = dynamic_cast(type)) { + while (const netuarray_t *atype = dynamic_cast(type)) { unpacked_dimensions.insert(unpacked_dimensions.begin(), atype->static_dimensions().begin(), atype->static_dimensions().end());