This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28094] Modulo of real(kind=10) variables doesn't work
- From: "paulthomas2 at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2006 19:08:51 -0000
- Subject: [Bug fortran/28094] Modulo of real(kind=10) variables doesn't work
- References: <bug-28094-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from paulthomas2 at wanadoo dot fr 2006-06-20 19:08 -------
Subject: Re: New: Modulo of real(kind=10) variables doesn't
work
fxcoudert at gcc dot gnu dot org wrote:
>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.
>
>
Yes, I knew about this and assumed that it was all part of Cygwin being
Hicksville!
Seriously, I never got round to reporting it because I was so tied up
trying to prepare a decent fix for mod.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28094