public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/57090] [Fortran-Dev] FAIL: gfortran.dg/alloc_comp_bounds_1.f90 -O* execution test Date: Sat, 27 Apr 2013 21:51:00 -0000 [thread overview] Message-ID: <bug-57090-4-bptYho2imB@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-57090-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57090 --- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2013-04-27 21:51:53 UTC --- If in the reduced test I print also the size of x%ib, the output becomes 1 6 expected 1 4 6 -1 1 expected -1 2 3 1 5 expected 1 4 5 1 5 expected 1 4 5 This also explains the failure of alloc_comp_constructor_1.f90. With the following changes --- /opt/gcc/for_work/gcc/testsuite/gfortran.dg/alloc_comp_constructor_1.f90 2010-04-06 17:08:13.000000000 +0200 +++ alloc_comp_constructor_1_db_2.f90 2013-04-27 23:50:22.000000000 +0200 @@ -40,7 +40,8 @@ Program test_constructor if (any(lbound(x%a) /= lbound(y))) call abort() if (any(ubound(x%a) /= ubound(y))) call abort() if (any(x%a /= y)) call abort() - if (size(x%q) /= 2) call abort() + print *, size(x%q) +! if (size(x%q) /= 2) call abort() do i = 1, 2 if (any(x%q(i)%a /= foo%a)) call abort() end do @@ -81,7 +82,8 @@ contains if (any(lbound(x%a) /= lbound(y))) call abort() if (any(ubound(x%a) /= ubound(y))) call abort() if (any(x%a /= y)) call abort() - if (size(x%q) /= 2) call abort() + print *, size(x%q) +! if (size(x%q) /= 2) call abort() do i = 1, 2 if (any(x%q(i)%a /= foo%a)) call abort() end do the test passes and output 3 3
next prev parent reply other threads:[~2013-04-27 21:51 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-04-27 13:56 [Bug fortran/57090] New: " dominiq at lps dot ens.fr 2013-04-27 21:51 ` dominiq at lps dot ens.fr [this message] 2013-04-30 11:35 ` [Bug fortran/57090] [Fortran-Dev] " dominiq at lps dot ens.fr 2013-04-30 11:36 ` dominiq at lps dot ens.fr
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=bug-57090-4-bptYho2imB@http.gcc.gnu.org/bugzilla/ \ --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).