re PR fortran/77406 (ICE in generic_correspondence, at fortran/interface.c:1123)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 7 Oct 2016 18:18:03 +0000 (18:18 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 7 Oct 2016 18:18:03 +0000 (18:18 +0000)
commitbd845c14b7aa666b5f7d453fa928551506df0ffa
tree89b197f22a5f631bf1248ad5e44a5a7f0aed7d66
parent296002c6a1354f1520f32b9cd1b4c61c6ab186ef
re PR fortran/77406 (ICE in generic_correspondence, at fortran/interface.c:1123)

2016-10-07  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/77406
* interface.c (gfc_compare_interfaces): Fix detection of ambiguous
interface involving alternate return.
(check_interface1): Improve error message and loci.

2016-10-07  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/77406
* gfortran.dg/pr77406.f90: New test.
* gfortran.dg/assumed_type_3.f90: Update error messages.
* gfortran.dg/defined_operators_1.f90: Ditto.
* gfortran.dg/generic_26.f90: Ditto.
* gfortran.dg/generic_7.f90: Ditto.
* gfortran.dg/gomp/udr5.f90: Ditto.
* gfortran.dg/gomp/udr7.f90: Ditto.
* gfortran.dg/interface_1.f90: Ditto.
* gfortran.dg/interface_37.f90: Ditto.
* gfortran.dg/interface_5.f90: Ditto.
* gfortran.dg/interface_6.f90: Ditto.
* gfortran.dg/interface_7.f90
* gfortran.dg/no_arg_check_3.f90
* gfortran.dg/operator_5.f90
* gfortran.dg/proc_ptr_comp_20.f90: Ditto.

From-SVN: r240870
18 files changed:
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/assumed_type_3.f90
gcc/testsuite/gfortran.dg/defined_operators_1.f90
gcc/testsuite/gfortran.dg/generic_26.f90
gcc/testsuite/gfortran.dg/generic_7.f90
gcc/testsuite/gfortran.dg/gomp/udr5.f90
gcc/testsuite/gfortran.dg/gomp/udr7.f90
gcc/testsuite/gfortran.dg/interface_1.f90
gcc/testsuite/gfortran.dg/interface_37.f90
gcc/testsuite/gfortran.dg/interface_5.f90
gcc/testsuite/gfortran.dg/interface_6.f90
gcc/testsuite/gfortran.dg/interface_7.f90
gcc/testsuite/gfortran.dg/no_arg_check_3.f90
gcc/testsuite/gfortran.dg/operator_5.f90
gcc/testsuite/gfortran.dg/pr77406.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/proc_ptr_comp_20.f90