From f3321126eda73cfd152dcf131edee4bd8cbff419 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Sun, 9 Aug 2015 16:41:46 +0200 Subject: [PATCH] vhdlpp: Fixed a problem with types defined as an array of arrays. --- vhdlpp/vtype_emit.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vhdlpp/vtype_emit.cc b/vhdlpp/vtype_emit.cc index d54cce23a..35d3ef2e6 100644 --- a/vhdlpp/vtype_emit.cc +++ b/vhdlpp/vtype_emit.cc @@ -89,7 +89,7 @@ int VTypeArray::emit_with_dims_(std::ostream&out, bool packed, perm_string name) list dims; const VTypeArray*cur = this; - while (const VTypeArray*sub = dynamic_cast (cur->etype_)) { + while (const VTypeArray*sub = dynamic_cast (cur->element_type())) { dims.push_back(cur); cur = sub; }