diff --git a/vhdlpp/package.cc b/vhdlpp/package.cc index df8f60c41..167c8a279 100644 --- a/vhdlpp/package.cc +++ b/vhdlpp/package.cc @@ -74,6 +74,9 @@ void Package::write_to_stream(ostream&fd) const if (is_global_type(cur->first)) continue; + if(!dynamic_cast(cur->second)) + fd << "sub"; + fd << "type " << cur->first << " is "; cur->second->write_type_to_stream(fd); fd << "; -- imported" << endl; @@ -85,6 +88,9 @@ void Package::write_to_stream(ostream&fd) const if (is_global_type(cur->first)) continue; + if(!dynamic_cast(cur->second)) + fd << "sub"; + fd << "type " << cur->first << " is "; cur->second->write_type_to_stream(fd); fd << ";" << endl;