re PR fortran/50515 (gfortran should not accept an external that is a common (r178939))
commitef71fdd925864fd461bd18cd52218495b457b29b
authorJanus Weil <janus@gcc.gnu.org>
Mon, 26 Sep 2011 20:05:43 +0000 (26 22:05 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Mon, 26 Sep 2011 20:05:43 +0000 (26 22:05 +0200)
treec49eb4d91d7d86c25d6475bbd94e4881237da025
parentfbaec9502645814d236f906eaacd72f34ef159e4
re PR fortran/50515 (gfortran should not accept an external that is a common (r178939))

2011-09-26  Janus Weil  <janus@gcc.gnu.org>

PR fortran/50515
* resolve.c (resolve_common_blocks): Check for EXTERNAL attribute.

PR fortran/50517
* interface.c (gfc_compare_interfaces): Bugfix in check for result type.

2011-09-26  Janus Weil  <janus@gcc.gnu.org>

PR fortran/50515
* gfortran.dg/common_15.f90: New.

PR fortran/50517
* gfortran.dg/dummy_procedure_5.f90: New.
* gfortran.dg/interface_26.f90: Modified error message.
* gfortran.dg/proc_ptr_11.f90: Ditto.
* gfortran.dg/proc_ptr_15.f90: Ditto.
* gfortran.dg/proc_ptr_comp_20.f90: Ditto.
* gfortran.dg/proc_ptr_result_5.f90: Ditto.

From-SVN: r179213
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/common_15.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dummy_procedure_5.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/interface_26.f90
gcc/testsuite/gfortran.dg/proc_ptr_11.f90
gcc/testsuite/gfortran.dg/proc_ptr_15.f90
gcc/testsuite/gfortran.dg/proc_ptr_comp_20.f90
gcc/testsuite/gfortran.dg/proc_ptr_result_5.f90