From 2d9bbb6b6d1762039c0436b8ed42a3c29ce4c7d2 Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Sun, 8 Jun 2008 09:48:53 +0200 Subject: re PR fortran/35830 (ICE with PROCEDURE() containing array formal arguments) 2008-06-08 Tobias Burnus PR fortran/35830 * resolve.c (resolve_symbol): Copy more attributes for PROCEDUREs with interfaces. 2008-06-08 Tobias Burnus PR fortran/35830 * proc_decl_13.f90: New. * proc_decl_14.f90: New. * proc_decl_15.f90: New. From-SVN: r136554 --- gcc/fortran/ChangeLog | 6 ++++++ gcc/fortran/resolve.c | 8 ++++++++ 2 files changed, 14 insertions(+) (limited to 'gcc/fortran') diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 9fe6614..9c95069 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2008-06-08 Tobias Burnus + + PR fortran/35830 + * resolve.c (resolve_symbol): Copy more attributes for + PROCEDUREs with interfaces. + 2008-06-07 Jerry DeLisle PR fortran/36420 diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 2787e29..9c0e45d 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -7905,6 +7905,14 @@ resolve_symbol (gfc_symbol *sym) sym->ts.interface = ifc; sym->attr.function = ifc->attr.function; sym->attr.subroutine = ifc->attr.subroutine; + sym->attr.allocatable = ifc->attr.allocatable; + sym->attr.pointer = ifc->attr.pointer; + sym->attr.pure = ifc->attr.pure; + sym->attr.elemental = ifc->attr.elemental; + sym->attr.dimension = ifc->attr.dimension; + sym->attr.recursive = ifc->attr.recursive; + sym->attr.always_explicit = ifc->attr.always_explicit; + sym->as = gfc_copy_array_spec (ifc->as); copy_formal_args (sym, ifc); } else if (sym->ts.interface->name[0] != '\0') -- cgit v1.1