Skip to content

Commit

Permalink
Fortran: ICE with automatic character object, save, and various options
Browse files Browse the repository at this point in the history
gcc/fortran/ChangeLog:

	PR fortran/68568
	* primary.c (gfc_expr_attr): Variable attribute can only be
	inquired when symtree is non-NULL.
  • Loading branch information
harald-anlauf committed Aug 7, 2021
1 parent 6866f48 commit cd754ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcc/fortran/primary.c
Original file line number Diff line number Diff line change
Expand Up @@ -2779,7 +2779,7 @@ gfc_expr_attr (gfc_expr *e)
&& e->value.function.isym->transformational
&& e->ts.type == BT_CLASS)
attr = CLASS_DATA (e)->attr;
else
else if (e->symtree)
attr = gfc_variable_attr (e, NULL);

/* TODO: NULL() returns pointers. May have to take care of this
Expand Down

0 comments on commit cd754ef

Please sign in to comment.