This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/67524] ICE on using implicit character instead of implicit none etc.
- 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: Wed, 09 Sep 2015 16:47:19 +0000
- Subject: [Bug fortran/67524] ICE on using implicit character instead of implicit none etc.
- Auto-submitted: auto-generated
- References: <bug-67524-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67524
--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Here, all variables are declared explicitly,
but using "implicit character" ...
$ cat z1_imchfe.f90
module m
implicit character(8) (a-z)
contains
function f(x)
integer :: x
integer :: f
real :: e
f = x
return
entry e(x)
e = x
end
end module
program p
use m
print *, f(1)
print *, e(1)
end
or this variation ...
$ cat z2_imchfe.f90
module m
implicit none
contains
function f(x)
implicit character(8) (a-z)
integer :: x
integer :: f
real :: e
f = x
return
entry e(x)
e = x
end
end module
program p
use m
print *, f(1)
print *, e(1)
end
yields : (with gfortran 5.2.1 on SUSE Linux 13.2)
$ gfortran -g -O0 -Wall -fcheck=all -fno-frontend-optimize z1_imchfe.f90
internal compiler error: in build_entry_thunks, at fortran/trans-decl.c:2607