Skip to content

Commit

Permalink
Update src/parse.c
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Gasson <[email protected]>
  • Loading branch information
NikLeberg and nickg authored Dec 10, 2024
1 parent d1814bb commit 47205cd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -3133,11 +3133,7 @@ static tree_t p_formal_part(type_t *signature)

default:
parse_error(CURRENT_LOC, "illegal formal designator");
tree_t dummy = tree_new(T_REF);
tree_set_loc(dummy, CURRENT_LOC);
tree_set_ident(dummy, error_marker());
tree_set_type(dummy, type_new(T_NONE));
return dummy;
return error_expr();
}

return name;
Expand Down

0 comments on commit 47205cd

Please sign in to comment.