[Bug fortran/68151] ICE on using select case with function of wrong type
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Thu Oct 29 18:19:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68151
--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Or depending on used compiler options :
$ cat z3.f90
program p
real :: z
integer :: k = 1
select case (k)
case (:huge(z))
end select
end
$ gfortran -fdefault-real-8 z3.f90
f951: internal compiler error: gfc_trans_select(): Bad type for case expr.
---
Analogous with complex :
$ cat z4.f90
program p
integer :: k = 1
select case (k)
case (cmplx(1):)
end select
end
$ gfortran -fdefault-real-8 z4.f90
f951: internal compiler error: gfc_trans_select(): Bad type for case expr.
More information about the Gcc-bugs
mailing list