This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28094] New: Modulo of real(kind=10) variables doesn't work
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2006 11:44:59 -0000
- Subject: [Bug fortran/28094] New: Modulo of real(kind=10) variables doesn't work
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
While working on PR 24518, I found the following:
$ cat a.f90
real(kind=10) :: x = 10.0
print *, mod (x,x)
end
$ gfortran a.f90
In file a.f90:3
end
1
Internal Error at (1):
gfc_validate_kind(): Got bad kind
It looks like we're trying to use the integer kind associated with the real
kind, and of course, there's not integer(kind=10) available.
--
Summary: Modulo of real(kind=10) variables doesn't work
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fxcoudert at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28094