File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ type : ARRAY_Token NUMBER_Token DOTDOT_Token NUMBER_Token OF_Token type
281
281
282
282
stack_type ($$).set(ID_size, end-start+1 );
283
283
stack_type ($$).set(ID_offset, start);
284
- stack_type ($$).subtype ()=stack_type($6 );
284
+ stack_type ($$).add_subtype ()=stack_type($6 );
285
285
}
286
286
| BOOLEAN_Token { init($$ , ID_bool); }
287
287
| ' {' enum_list ' }' { $$ =$2 ; }
Original file line number Diff line number Diff line change @@ -745,7 +745,7 @@ unpacked_dimension_brace:
745
745
packed_dimension :
746
746
' [' const_expression TOK_COLON const_expression ' ]'
747
747
{ init($$ , ID_array);
748
- stack_type ($$).subtype ().make_nil();
748
+ stack_type ($$).add_subtype ().make_nil();
749
749
exprt &range=static_cast <exprt &>(stack_type($$ ).add(ID_range));
750
750
range.add_to_operands(stack_expr($2 ));
751
751
range.add_to_operands(stack_expr($4 )); }
@@ -755,7 +755,7 @@ packed_dimension:
755
755
unpacked_dimension :
756
756
' [' const_expression TOK_COLON const_expression ' ]'
757
757
{ init($$ , ID_array);
758
- stack_type ($$).subtype ().make_nil();
758
+ stack_type ($$).add_subtype ().make_nil();
759
759
exprt &range=static_cast <exprt &>(stack_type($$ ).add(ID_range));
760
760
range.add_to_operands(stack_expr($2 ));
761
761
range.add_to_operands(stack_expr($4 )); }
Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ type:
505
505
| TOK_ACCESS type
506
506
{
507
507
init ($$, ID_reference);
508
- stack_type ($$).subtype ()=stack_type($2 );
508
+ stack_type ($$).add_subtype ()=stack_type($2 );
509
509
}
510
510
| TOK_TYPE TOK_IDENTIFIER
511
511
{
You can’t perform that action at this time.
0 commit comments