vhdlpp: Do not display an error message when probing type without a context.

This commit is contained in:
Maciej Suminski 2016-02-15 16:54:06 +01:00
parent f620727555
commit c23f970a5f
1 changed files with 8 additions and 2 deletions

View File

@ -1020,8 +1020,14 @@ const VType* ExpName::probe_type(Entity*ent, ScopeBase*scope) const
} }
} }
cerr << get_fileline() << ": error: Signal/variable " << name_ if(ent || scope) {
<< " not found in this context." << endl; // Do not display error messages if there was no entity or scope
// specified. There are functions that are called without any specific
// context and they still may want to probe the expression type.
cerr << get_fileline() << ": error: Signal/variable " << name_
<< " not found in this context." << endl;
}
return 0; return 0;
} }