diff --git a/vhdlpp/expression_emit.cc b/vhdlpp/expression_emit.cc index 67104e13c..7e4abb504 100644 --- a/vhdlpp/expression_emit.cc +++ b/vhdlpp/expression_emit.cc @@ -912,10 +912,11 @@ bool ExpString::is_primary(void) const int ExpString::emit(ostream& out, Entity*ent, ScopeBase*scope) { + const VTypeArray*arr; const VType*type = peek_type(); assert(type != 0); - if (const VTypeArray*arr = dynamic_cast(type)) { + if (type != &primitive_STRING && (arr = dynamic_cast(type))) { return emit_as_array_(out, ent, scope, arr); }