vhdlpp: More descriptive error message for a missing function.

This commit is contained in:
Maciej Suminski 2015-12-04 17:16:27 +01:00
parent e44010c2a3
commit acb4ca8e47
1 changed files with 4 additions and 1 deletions

View File

@ -583,7 +583,10 @@ int ExpFunc::emit(ostream&out, Entity*ent, ScopeBase*scope)
{
int errors = 0;
ivl_assert(*this, def_);
if(!def_) {
cerr << get_fileline() << ": error: unknown function: " << name_ << endl;
return 1;
}
// If this function has an elaborated definition, and if
// that definition is in a package, then include the