Commit c673c52c by Steven G. Kargl

re PR fortran/85357 (ICE on invalid code with equal procedure names)

2018-12-26  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/85357
        * gfortran.df/pr85357.f90: New test.

From-SVN: r267423
parent 2b8c2e7f
2018-12-26 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/85357
* gfortran.df/pr85357.f90: New test.
2018-12-24 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/45513
......
! { 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" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment