Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Temporary fix for error compiling std_logic_arith

  • Loading branch information...
commit c9e3471b6bb92d72a1d2106536221d50568ac1de 1 parent ddee714
Nick Gasson authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  src/sem.c
2  src/sem.c
@@ -2901,6 +2901,8 @@ static bool sem_check_array_slice(tree_t t)
2901 2901 return false;
2902 2902
2903 2903 type_t array_type = tree_type(tree_value(t));
  2904 + while (type_kind(array_type) == T_SUBTYPE)
  2905 + array_type = type_base(array_type);
2904 2906
2905 2907 if (!type_is_array(array_type))
2906 2908 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.