public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jblomqvi at cc dot hut dot fi" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/24305] Complex(10) formatted IO is broken. Date: Tue, 11 Oct 2005 05:55:00 -0000 [thread overview] Message-ID: <20051011055534.13815.qmail@sourceware.org> (raw) In-Reply-To: <bug-24305-8500@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from jblomqvi at cc dot hut dot fi 2005-10-11 05:55 ------- Consider this testcase (from 24174): ! { dg-do run } ! PR 24174 program kind10_io real(kind=10) :: a,b(2), c complex(kind=10) :: d, e, f(2) character(len=180) :: tmp ! Test real(10) scalar and array formatted IO b(:) = 2.0_10 write (tmp, *) b read (tmp, *) a, c if (a /= 2.0_10) call abort() if (c /= 2.0_10) call abort() ! Complex(10) scalar and array formatted and list formatted IO f = cmplx ( 1.0_10, 2.0_10, 10) d = cmplx ( huge (1.0_10), huge (2.0_10), 10) write (tmp, *) d read (tmp, *) e ! List formatted read doesn't work. if (e /= d) call abort() write (tmp, '(2(e12.4e5, 2x))') d read (tmp, '(2(e12.4e5, 2x))') e ! Read doesn't work either if (e /= d) call abort() end program kind10_io -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24305
next prev parent reply other threads:[~2005-10-11 5:55 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-10-11 5:50 [Bug libfortran/24305] New: " jblomqvi at cc dot hut dot fi 2005-10-11 5:55 ` jblomqvi at cc dot hut dot fi [this message] 2005-11-05 18:08 ` [Bug libfortran/24305] " jblomqvi at cc dot hut dot fi 2005-11-06 18:28 ` jb at gcc dot gnu dot org 2005-11-11 20:41 ` jb at gcc dot gnu dot org 2005-11-13 6:31 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20051011055534.13815.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).