public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34318] New: Modules: Infinity/NaN parameters read as 0.0
@ 2007-12-02 23:21 burnus at gcc dot gnu dot org
2007-12-04 10:23 ` [Bug fortran/34318] " patchapp at dberlin dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-12-02 23:21 UTC (permalink / raw)
To: gcc-bugs
Split off of PR 34230.
Compile the following with -fno-range-check:
module except
real, parameter :: inf = 1./0., nan = 0./0.
end module
program a
use except
print *, inf, nan
end program a
This prints:
0.0000000 0.0000000
The .mod shows:
(CONSTANT (REAL 4 0 0 REAL ()) 0 '0.@Inf@@47231941137967')
and ^^^^^^^^
(CONSTANT (REAL 4 0 0 REAL ()) 0 '0.@NaN@@47231941137967')
^^^^^^^^
--
Summary: Modules: Infinity/NaN parameters read as 0.0
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34318
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/34318] Modules: Infinity/NaN parameters read as 0.0
2007-12-02 23:21 [Bug fortran/34318] New: Modules: Infinity/NaN parameters read as 0.0 burnus at gcc dot gnu dot org
@ 2007-12-04 10:23 ` patchapp at dberlin dot org
2007-12-04 10:32 ` burnus at gcc dot gnu dot org
2007-12-04 10:33 ` burnus at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: patchapp at dberlin dot org @ 2007-12-04 10:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from patchapp at dberlin dot org 2007-12-04 10:23 -------
Subject: Bug number PR34318
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-12/msg00097.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34318
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/34318] Modules: Infinity/NaN parameters read as 0.0
2007-12-02 23:21 [Bug fortran/34318] New: Modules: Infinity/NaN parameters read as 0.0 burnus at gcc dot gnu dot org
2007-12-04 10:23 ` [Bug fortran/34318] " patchapp at dberlin dot org
@ 2007-12-04 10:32 ` burnus at gcc dot gnu dot org
2007-12-04 10:33 ` burnus at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-12-04 10:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from burnus at gcc dot gnu dot org 2007-12-04 10:32 -------
Subject: Bug 34318
Author: burnus
Date: Tue Dec 4 10:32:04 2007
New Revision: 130600
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130600
Log:
2007-12-04 Tobias Burnus <burnus@net-b.de>
PR fortran/34318
* module.c (mio_gmp_real): Properly write NaN and Infinity.
2007-12-04 Tobias Burnus <burnus@net-b.de>
PR fortran/34318
* gfortran.dg/module_nan.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/module_nan.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/module.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34318
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/34318] Modules: Infinity/NaN parameters read as 0.0
2007-12-02 23:21 [Bug fortran/34318] New: Modules: Infinity/NaN parameters read as 0.0 burnus at gcc dot gnu dot org
2007-12-04 10:23 ` [Bug fortran/34318] " patchapp at dberlin dot org
2007-12-04 10:32 ` burnus at gcc dot gnu dot org
@ 2007-12-04 10:33 ` burnus at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-12-04 10:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from burnus at gcc dot gnu dot org 2007-12-04 10:33 -------
FIXED on the trunk (4.3.0).
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34318
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-04 10:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-02 23:21 [Bug fortran/34318] New: Modules: Infinity/NaN parameters read as 0.0 burnus at gcc dot gnu dot org
2007-12-04 10:23 ` [Bug fortran/34318] " patchapp at dberlin dot org
2007-12-04 10:32 ` burnus at gcc dot gnu dot org
2007-12-04 10:33 ` burnus 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).