]> gcc.gnu.org Git - gcc.git/commit - gcc/fortran/expr.c
re PR other/38920 (dw2 exceptions don't work.)
authorJanus Weil <janus@gcc.gnu.org>
Tue, 7 Apr 2009 07:24:37 +0000 (09:24 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Tue, 7 Apr 2009 07:24:37 +0000 (09:24 +0200)
commit3afadac3ca557d83ad115178a631aeb60659b0c5
treeb6a3794c0ef4b9169b679011d0325bd1a347a4f6
parent445099463a83367ddabb201e9e29e5a741cce034
re PR other/38920 (dw2 exceptions don't work.)

2009-04-07  Janus Weil  <janus@gcc.gnu.org>

PR fortran/38920
* expr.c (gfc_check_pointer_assign): Enable interface check for
procedure pointers.
* gfortran.h: Add copy_formal_args_intr.
* interface.c (gfc_compare_interfaces): Call gfc_compare_intr_interfaces
if second argument is an intrinsic.
(compare_intr_interfaces): Correctly set attr.function, attr.subroutine
and ts.
(compare_parameter): Call gfc_compare_interfaces also for intrinsics.
* resolve.c (resolve_specific_f0,resolve_specific_s0): Don't resolve
intrinsic interfaces here. Must happen earlier.
(resolve_symbol): Resolution of intrinsic interfaces moved here from
resolve_specific_..., and formal args are now copied from intrinsic
interfaces.
* symbol.c (copy_formal_args_intr): New function to copy the formal
arguments from an intinsic procedure.

2009-04-07  Janus Weil  <janus@gcc.gnu.org>

PR fortran/38920
* gfortran.dg/proc_decl_1.f90: Modified.
* gfortran.dg/proc_ptr_11.f90: Extended.
* gfortran.dg/proc_ptr_13.f90: Modified.

From-SVN: r145651
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/gfortran.h
gcc/fortran/interface.c
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/proc_decl_1.f90
gcc/testsuite/gfortran.dg/proc_ptr_11.f90
gcc/testsuite/gfortran.dg/proc_ptr_13.f90
This page took 1.406079 seconds and 5 git commands to generate.