Update parse_misc.cc

Fixed bug described in #110
This commit is contained in:
anon 2016-06-13 00:56:43 +02:00 committed by GitHub
parent 49515ff62b
commit 6d06e9351a
1 changed files with 5 additions and 1 deletions

View File

@ -121,7 +121,11 @@ const VType* calculate_subtype_array(const YYLTYPE&loc, const char*base_name,
Expression*lef = tmpr->left();
Expression*rig = tmpr->right();
return calculate_subtype_array(loc, base_name, scope,
lef, tmpr->direction(), rig);
lef,
(tmpr->direction() == ExpRange::range_dir_t::DOWNTO
? true
: false),
rig);
}
sorrymsg(loc, "Don't know how to handle multiple ranges here.\n");