re PR fortran/53956 ([F03] PROCEDURE w/ interface: Bogus "EXTERNAL attribute conflict...
commit8bae3cefebfc940f629c0353ca345252844c0865
authorJanus Weil <janus@gcc.gnu.org>
Mon, 16 Jul 2012 10:13:19 +0000 (16 12:13 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Mon, 16 Jul 2012 10:13:19 +0000 (16 12:13 +0200)
treeaca81c703af31857c0eb1eb8939363a1609ddc47
parentd923fe0f01c65cfef6e26645e01357196a634995
re PR fortran/53956 ([F03] PROCEDURE w/ interface: Bogus "EXTERNAL attribute conflicts with FUNCTION attribute")

2012-07-16  Janus Weil  <janus@gcc.gnu.org>

PR fortran/53956
* gfortran.h (gfc_copy_formal_args,gfc_copy_formal_args_ppc): Modified
prototypes.
* symbol.c (gfc_copy_formal_args): New argument 'if_src'. Copy if_source
of dummy procedures.
(gfc_copy_formal_args_ppc): Ditto.
* resolve.c (resolve_procedure_interface): Pass IFSRC_DECL to
gfc_copy_formal_args.
(resolve_fl_derived0): Pass IFSRC_DECL to gfc_copy_formal_args_ppc.

2012-07-16  Janus Weil  <janus@gcc.gnu.org>

PR fortran/53956
* gfortran.dg/proc_decl_28.f90: New.

From-SVN: r189514
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/proc_decl_28.f90 [new file with mode: 0644]