public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20786] New: Can't use AINT intrinsic with KIND parameter
@ 2005-04-06 9:54 fxcoudert at gcc dot gnu dot org
2005-04-06 15:12 ` [Bug fortran/20786] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-04-06 9:54 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 952 bytes --]
The following code is valid:
$ cat aint_mismatch.f
implicit none
real(4) r
r = aint (r,kind=8)
end
$ gfortran aint_mismatch.f
aint_mismatch.f: In function MAIN__:
aint_mismatch.f:3: internal compiler error: in emit_move_insn, at expr.c:3085
The ICE disappears if kind=4 or if r is a real(8). This should be easy to fix,
since other similar intrinsics (such as ANINT) doesn't exhibit such ICE.
--
Summary: Can't use AINT intrinsic with KIND parameter
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fxcoudert at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 19292
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20786
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20786] Can't use AINT intrinsic with KIND parameter
2005-04-06 9:54 [Bug fortran/20786] New: Can't use AINT intrinsic with KIND parameter fxcoudert at gcc dot gnu dot org
@ 2005-04-06 15:12 ` pinskia at gcc dot gnu dot org
2005-05-23 18:25 ` jblomqvi at cc dot hut dot fi
2005-06-11 20:07 ` jblomqvi at cc dot hut dot fi
2 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-06 15:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-06 15:11 -------
Confirmed, the problem is most likely we are missing a fold_convert somewhere converting from
double down to float (sorry for using C types but it makes it easier sometimes).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-04-06 15:11:53
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20786
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20786] Can't use AINT intrinsic with KIND parameter
2005-04-06 9:54 [Bug fortran/20786] New: Can't use AINT intrinsic with KIND parameter fxcoudert at gcc dot gnu dot org
2005-04-06 15:12 ` [Bug fortran/20786] " pinskia at gcc dot gnu dot org
@ 2005-05-23 18:25 ` jblomqvi at cc dot hut dot fi
2005-06-11 20:07 ` jblomqvi at cc dot hut dot fi
2 siblings, 0 replies; 7+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2005-05-23 18:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jblomqvi at cc dot hut dot fi 2005-05-23 18:22 -------
The ICE seems to have disappeared, but it still doesn't work correctly. E.g.
implicit none
real(4) :: r = 42.0
r = aint (r,kind=8)
print *, r
end
Prints out 0.000000
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20786
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20786] Can't use AINT intrinsic with KIND parameter
2005-04-06 9:54 [Bug fortran/20786] New: Can't use AINT intrinsic with KIND parameter fxcoudert at gcc dot gnu dot org
2005-04-06 15:12 ` [Bug fortran/20786] " pinskia at gcc dot gnu dot org
2005-05-23 18:25 ` jblomqvi at cc dot hut dot fi
@ 2005-06-11 20:07 ` jblomqvi at cc dot hut dot fi
2 siblings, 0 replies; 7+ messages in thread
From: jblomqvi at cc dot hut dot fi @ 2005-06-11 20:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jblomqvi at cc dot hut dot fi 2005-06-11 20:07 -------
Actually, ANINT also exhibits the same problem:
implicit none
real(4) :: r = 42.7, r2
r2 = aint (r,kind=8)
print *, 'aint: ', r2
r2 = anint (r, kind=8)
print *, 'anint: ', r2
end
Prints out:
aint: 0.000000
anint: 0.000000
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20786
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <bug-20786-10259@http.gcc.gnu.org/bugzilla/>]
end of thread, other threads:[~2005-10-12 0:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-06 9:54 [Bug fortran/20786] New: Can't use AINT intrinsic with KIND parameter fxcoudert at gcc dot gnu dot org
2005-04-06 15:12 ` [Bug fortran/20786] " pinskia at gcc dot gnu dot org
2005-05-23 18:25 ` jblomqvi at cc dot hut dot fi
2005-06-11 20:07 ` jblomqvi at cc dot hut dot fi
[not found] <bug-20786-10259@http.gcc.gnu.org/bugzilla/>
2005-10-11 23:58 ` cvs-commit at gcc dot gnu dot org
2005-10-12 0:31 ` cvs-commit at gcc dot gnu dot org
2005-10-12 0:33 ` kargl at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).