Skip to content
Browse files

Temporary fix for error compiling std_logic_arith

  • Loading branch information...
1 parent ddee714 commit c9e3471b6bb92d72a1d2106536221d50568ac1de @nickg committed Mar 28, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/sem.c
View
2 src/sem.c
@@ -2901,6 +2901,8 @@ static bool sem_check_array_slice(tree_t t)
return false;
type_t array_type = tree_type(tree_value(t));
+ while (type_kind(array_type) == T_SUBTYPE)
+ array_type = type_base(array_type);
if (!type_is_array(array_type))
sem_error(t, "type of slice prefix is not an array");

0 comments on commit c9e3471

Please sign in to comment.
Something went wrong with that request. Please try again.