aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorJanus Weil <janus@gcc.gnu.org>2011-01-09 22:01:38 +0100
committerJanus Weil <janus@gcc.gnu.org>2011-01-09 22:01:38 +0100
commit8977b4bb0d236760ff2a03f25c4a9c13bea7fe9e (patch)
treefdbbb94c26097e6548aa65c64bc3f206cf245654 /gcc/fortran
parent20ad86886588d1e419725d20b2cf75129a6ef504 (diff)
downloadgcc-8977b4bb0d236760ff2a03f25c4a9c13bea7fe9e.zip
gcc-8977b4bb0d236760ff2a03f25c4a9c13bea7fe9e.tar.gz
gcc-8977b4bb0d236760ff2a03f25c4a9c13bea7fe9e.tar.bz2
re PR fortran/47224 ([F03] ICE with procedure pointer component)
2011-01-09 Janus Weil <janus@gcc.gnu.org> PR fortran/47224 * resolve.c (resolve_actual_arglist): Remove unneeded and buggy piece of code. 2011-01-09 Janus Weil <janus@gcc.gnu.org> PR fortran/47224 * gfortran.dg/proc_ptr_comp_28.f90: New. From-SVN: r168618
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/resolve.c15
2 files changed, 6 insertions, 15 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 0c623dd..b8f3afe 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,9 @@
+2011-01-09 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/47224
+ * resolve.c (resolve_actual_arglist): Remove unneeded and buggy piece
+ of code.
+
2011-01-09 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/38536
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c
index b86c430..88acb55 100644
--- a/gcc/fortran/resolve.c
+++ b/gcc/fortran/resolve.c
@@ -1528,7 +1528,6 @@ resolve_actual_arglist (gfc_actual_arglist *arg, procedure_type ptype,
gfc_symtree *parent_st;
gfc_expr *e;
int save_need_full_assumed_size;
- gfc_component *comp;
for (; arg; arg = arg->next)
{
@@ -1548,20 +1547,6 @@ resolve_actual_arglist (gfc_actual_arglist *arg, procedure_type ptype,
continue;
}
- if (gfc_is_proc_ptr_comp (e, &comp))
- {
- e->ts = comp->ts;
- if (e->expr_type == EXPR_PPC)
- {
- if (comp->as != NULL)
- e->rank = comp->as->rank;
- e->expr_type = EXPR_FUNCTION;
- }
- if (gfc_resolve_expr (e) == FAILURE)
- return FAILURE;
- goto argument_list;
- }
-
if (e->expr_type == EXPR_VARIABLE
&& e->symtree->n.sym->attr.generic
&& no_formal_args