From c673c52c2086eca1d178fbfb22e6667a353563c8 Mon Sep 17 00:00:00 2001 From: "Steven G. Kargl" Date: Wed, 26 Dec 2018 21:08:53 +0000 Subject: [PATCH] re PR fortran/85357 (ICE on invalid code with equal procedure names) 2018-12-26 Steven G. Kargl PR fortran/85357 * gfortran.df/pr85357.f90: New test. From-SVN: r267423 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.dg/pr85357.f90 | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/pr85357.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 138866b98e3..4b39847d9d8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-12-26 Steven G. Kargl + + PR fortran/85357 + * gfortran.df/pr85357.f90: New test. + 2018-12-24 Steven G. Kargl PR fortran/45513 diff --git a/gcc/testsuite/gfortran.dg/pr85357.f90 b/gcc/testsuite/gfortran.dg/pr85357.f90 new file mode 100644 index 00000000000..22f2d3d3b40 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pr85357.f90 @@ -0,0 +1,17 @@ +! { dg-do compile } +module base + implicit none +contains + subroutine summation(i) + integer, intent(in) :: i + end subroutine +end module + +module extended + use base + implicit none +contains + subroutine summation() ! { dg-error "is already defined" } + end subroutine ! { dg-error "Expecting END MODULE statement" } +end module +! { dg-prune-output "is already defined at" } -- 2.30.2