aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/dump-parse-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/dump-parse-tree.c')
-rw-r--r--gcc/fortran/dump-parse-tree.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c
index 06322d4..adec12f 100644
--- a/gcc/fortran/dump-parse-tree.c
+++ b/gcc/fortran/dump-parse-tree.c
@@ -1060,7 +1060,13 @@ gfc_show_code_node (int level, gfc_code * c)
break;
case EXEC_CALL:
- gfc_status ("CALL %s ", c->resolved_sym->name);
+ if (c->resolved_sym)
+ gfc_status ("CALL %s ", c->resolved_sym->name);
+ else if (c->symtree)
+ gfc_status ("CALL %s ", c->symtree->name);
+ else
+ gfc_status ("CALL ?? ");
+
gfc_show_actual_arglist (c->ext.actual);
break;