From 6d06e9351acb847fcfc9f79ceafe960c3531b06e Mon Sep 17 00:00:00 2001 From: anon Date: Mon, 13 Jun 2016 00:56:43 +0200 Subject: [PATCH] Update parse_misc.cc Fixed bug described in #110 --- vhdlpp/parse_misc.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vhdlpp/parse_misc.cc b/vhdlpp/parse_misc.cc index eefe5296b..86c8e90cb 100644 --- a/vhdlpp/parse_misc.cc +++ b/vhdlpp/parse_misc.cc @@ -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");