public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30780]  New: cpu_time produces a floating point exception when used with -O0
@ 2007-02-12 21:08 glv at maths dot otago dot ac dot nz
  2007-02-12 21:26 ` [Bug fortran/30780] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: glv at maths dot otago dot ac dot nz @ 2007-02-12 21:08 UTC (permalink / raw)
  To: gcc-bugs

Test2.f95 has this code:
program test2
 real :: start, finish, dog
 call cpu_time(start)
 dog = 1.0
 dog = dog*dog
 call cpu_time(finish)
 print '("Time = ", f6.3, " seconds." )', finish - start
end program test2      

I compiled it with:
gfortran -O0 -ffpe-trap='precision' test2.f95

and on running got this error:
Floating point exception


-- 
           Summary: cpu_time produces a floating point exception when used
                    with -O0
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: glv at maths dot otago dot ac dot nz
GCC target triplet: x86_64-redhat-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30780


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-09-26 22:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-12 21:08 [Bug fortran/30780] New: cpu_time produces a floating point exception when used with -O0 glv at maths dot otago dot ac dot nz
2007-02-12 21:26 ` [Bug fortran/30780] " pinskia at gcc dot gnu dot org
2007-02-12 21:28 ` pinskia at gcc dot gnu dot org
2007-02-13  4:26 ` kargl at gcc dot gnu dot org
2007-02-13  4:32 ` [Bug libfortran/30780] " pinskia at gcc dot gnu dot org
2007-02-13  5:41 ` jvdelisle at gcc dot gnu dot org
2007-02-13  6:41 ` kargl at gcc dot gnu dot org
2007-02-14  0:37 ` jvdelisle at gcc dot gnu dot org
2007-09-21 11:37 ` [Bug libfortran/30780] FPE in CPU_TIME (and possibly others) with -ffpe-trap=underflow fxcoudert at gcc dot gnu dot org
2007-09-21 11:45 ` burnus at gcc dot gnu dot org
2007-09-21 11:59 ` fxcoudert at gcc dot gnu dot org
2007-09-26 22:27 ` fxcoudert at gcc dot gnu dot org
2007-09-26 22:28 ` fxcoudert 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).