public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/14395] New: [gfortran]  Intrinsic function CMPLX return incorrect with COMPLEX argument
@ 2004-03-03  4:22 bdavis9659 at comcast dot net
  2004-03-03  4:38 ` [Bug fortran/14395] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-03-03  4:22 UTC (permalink / raw)
  To: gcc-bugs

Distilled from NIST F77 compiler validation suite, test FM829.


CMPLEX is not returning the entire value when called with a COMPLEX argument.


$ cat z.f
        COMPLEX BVC,AVC
        AVC = (1.0,0.5)
        BVC = CMPLX(AVC)
        print*,bvc,avc
        end
 
 
$ /usr/local/bin/gfortran -static z.f
$ ./a.out
(   1.000000    ,   0.000000    ) (   1.000000    ,  0.5000000    )
                      ^
                      should be 0.5

Here is how it looks with g77:


$ g77 z.f
$ ./a.out
 (1.,0.5) (1.,0.5)

-- 
           Summary: [gfortran]  Intrinsic function CMPLX return incorrect
                    with COMPLEX argument
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bdavis9659 at comcast dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2004-04-11 16:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-03  4:22 [Bug fortran/14395] New: [gfortran] Intrinsic function CMPLX return incorrect with COMPLEX argument bdavis9659 at comcast dot net
2004-03-03  4:38 ` [Bug fortran/14395] " pinskia at gcc dot gnu dot org
2004-04-11 16:06 ` cvs-commit at gcc dot gnu dot org
2004-04-11 17:00 ` 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).