public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/25370]  New: Bad value for sqrt of double complex
@ 2005-12-12 15:28 fxcoudert at gcc dot gnu dot org
  2005-12-12 15:43 ` [Bug libfortran/25370] " fxcoudert at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-12-12 15:28 UTC (permalink / raw)
  To: gcc-bugs

This code exhibit a weird dependance on whether it is statically linked or
dynamically linked:

$ cat foo.f90 
complex c
double complex d

c = (-1., 0.)
print *, c, sqrt(c)
d = c
print *, d, sqrt(d)
end

$ ./bin/gfortran -static foo.f90 && ./a.out
 ( -1.000000    ,  0.000000    ) (  0.000000    ,  1.000000    )
 ( -1.00000000000000     ,  0.00000000000000     ) (  0.00000000000000     , 
1.00000000000000     )
$ ./bin/gfortran foo.f90 && ./a.out
 ( -1.000000    ,  0.000000    ) (  0.000000    ,  1.000000    )
 ( -1.00000000000000     ,  0.00000000000000     ) ( 1.397677071793657E-312,
3.756040694101013E-317)


-- 
           Summary: Bad value for sqrt of double complex
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org
 GCC build triplet: i386-pc-solaris2.9
  GCC host triplet: i386-pc-solaris2.9
GCC target triplet: i386-pc-solaris2.9


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


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

end of thread, other threads:[~2006-04-22 20:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-12 15:28 [Bug libfortran/25370] New: Bad value for sqrt of double complex fxcoudert at gcc dot gnu dot org
2005-12-12 15:43 ` [Bug libfortran/25370] " fxcoudert at gcc dot gnu dot org
2005-12-12 20:06 ` kargl at gcc dot gnu dot org
2005-12-12 22:14 ` fxcoudert at gcc dot gnu dot org
2005-12-15  9:25 ` fxcoudert at gcc dot gnu dot org
2006-04-03  6:51 ` jvdelisle at gcc dot gnu dot org
2006-04-22 20:39 ` pinskia 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).