This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/68318] New: ICE on duplicate entry declarations
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Nov 2015 17:53:25 +0000
- Subject: [Bug fortran/68318] New: ICE on duplicate entry declarations
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68318
Bug ID: 68318
Summary: ICE on duplicate entry declarations
Product: gcc
Version: 5.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gerhard.steinmetz.fortran@t-online.de
Target Milestone: ---
With duplicate entry declarations in scope :
$ cat z1.f90
module m
implicit none
contains
subroutine s1
entry e
end
subroutine s2
entry e
end
end module
$ gfortran -g -O0 -Wall -fcheck=all -c z1.f90
z1.f90:8.10:
entry e
1
z1.f90:5.10:
entry e
2
Error: Procedure 'e' at (1) is already defined at (2)
f951: internal compiler error: in gfc_release_symbol, at fortran/symbol.c:2591
---
$ cat z7.f90
module m1
implicit none
contains
subroutine s1
entry e
end
end module
module m2
use m1
implicit none
contains
subroutine s2
entry e
end
end module
$ gfortran -g -O0 -Wall -fcheck=all -c z7.f90
z7.f90:14.10:
entry e
1
z7.f90:10.7:
use m1
2
Error: Procedure 'e' at (1) is already defined at (2)
f951: internal compiler error: in gfc_release_symbol, at fortran/symbol.c:2591