stage1_2/iec.y
changeset 98 d0cdf1d00b74
parent 96 23baa8821b58
child 118 d4cf7ea933a4
--- a/stage1_2/iec.y	Sat Nov 17 10:08:38 2007 +0100
+++ b/stage1_2/iec.y	Thu Dec 06 18:01:58 2007 +0100
@@ -2243,6 +2243,7 @@
   integer_type_name '(' subrange')'
 	{$$ = new subrange_specification_c($1, $3, locloc(@$));}
 | prev_declared_subrange_type_name
+  {$$ = new subrange_specification_c($1, NULL, locloc(@$));}
 ;
 
 
@@ -2324,7 +2325,7 @@
   subrange
 	{$$ = new array_subrange_list_c(locloc(@$)); $$->add_element($1);}
 | array_subrange_list ',' subrange
-	{$$ = $1; $$->add_element($1);}
+	{$$ = $1; $$->add_element($3);}
 ;