diff --git a/vhdlpp/vtype.cc b/vhdlpp/vtype.cc index 7a6581148..45ae25d39 100644 --- a/vhdlpp/vtype.cc +++ b/vhdlpp/vtype.cc @@ -93,6 +93,11 @@ int VTypePrimitive::get_width(ScopeBase*) const case CHARACTER: return 8; + + default: + std::cerr << "sorry: primitive type " << type_ << + " has no get_width() implementation." << std::endl; + break; } return -1;