[Bug fortran/31214] New: ICE on valid code with gfortran
jv244 at cam dot ac dot uk
gcc-bugzilla@gcc.gnu.org
Fri Mar 16 11:44:00 GMT 2007
A recent gfortran ICEs on the following code:
module type_mod
implicit none
type x
integer x
end type x
type y
integer x
end type y
type z
integer x
end type z
interface assignment(=)
module procedure equals
end interface assignment(=)
interface operator(//)
module procedure a_op_b, b_op_a
end interface operator(//)
contains
subroutine equals(x,y)
type(z), intent(in) :: y
type(z), intent(out) :: x
x%x = y%x
end subroutine equals
function a_op_b(a,b)
type(x), intent(in) :: a
type(y), intent(in) :: b
type(z) a_op_b
type(z) b_op_a
entry b_op_a(b,a)
a_op_b%x = a%x/b%x
end function a_op_b
end module type_mod
program test
use type_mod
implicit none
type(x) :: x1 = x(19)
type(y) :: y1 = y(7)
type(z) z1
z1 = x1//y1
write(*,*) 'x1//y1 = ',z1
z1 = y1//x1
write(*,*) 'y1//x1 = ',z1
end program test
--
Summary: ICE on valid code with gfortran
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jv244 at cam dot ac dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31214
More information about the Gcc-bugs
mailing list