Skip to content

Commit

Permalink
Fix regression of vhpi9 test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed Aug 12, 2023
1 parent d8bbc2a commit 445454b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lower.c
Original file line number Diff line number Diff line change
Expand Up @@ -2691,7 +2691,8 @@ static vcode_reg_t lower_link_var(lower_unit_t *lu, tree_t decl)
istr(tree_ident(decl)));
}
}
else if (lu->mode == LOWER_THUNK && lu->parent == NULL) {
else if (lu->mode == LOWER_THUNK && lu->parent == NULL
&& tree_has_value(decl)) {
// Handle a special case of simplifying locally static expressions
// that reference constant declarations
assert(tree_kind(decl) == T_CONST_DECL);
Expand Down
1 change: 1 addition & 0 deletions test/regress/testlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -848,3 +848,4 @@ open1 normal,2019
issue750 normal,2008
order3 shell
driver18 normal,2008
vhpi9 normal,vhpi

0 comments on commit 445454b

Please sign in to comment.