vhdlpp: ExpName::elaborate_rval accepts enum values.

Fix for br986.
This commit is contained in:
Maciej Suminski 2015-08-09 18:22:43 +02:00
parent 0ae3414ec5
commit 775904ab0f
1 changed files with 3 additions and 0 deletions

View File

@ -304,6 +304,9 @@ int ExpName::elaborate_rval(Entity*ent, ScopeBase*scope, const InterfacePort*lva
} else if (scope->find_constant(name_, dummy_type, dummy_expr)) {
/* OK */
} else if (scope->is_enum_name(name_)) {
/* OK */
} else {
cerr << get_fileline() << ": error: No port, signal or constant " << name_
<< " to be used as r-value." << endl;