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/46896] [4.2/4.3/4.4/4.5/4.6 Regression] Wrong code with transpose(a) passed to subroutine Date: Sun, 12 Dec 2010 16:38:00 -0000 [thread overview] Message-ID: <bug-46896-4-gGNWx3B2U5@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-46896-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46896 --- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2010-12-12 16:37:48 UTC --- The patch in comment #5 fixes this PR, but the tests in pr41278, pr44912, and the variant below of pr40646 yields ICEs: "in proc_call_can_redefine_sym, at fortran/trans-expr.c:5411" for (variant of pr40646 and pr44912) or "pr41278.f90:10:0: internal compiler error: Segmentation fault". ! { dg-do run } ! ! PR 40646 ! ! array-valued PPCs ! ! Original test case by Charlie Sharpsteen <chuck@sharpsteen.net> ! Modified by Janus Weil <janus@gcc.gnu.org> module bugTestMod implicit none type:: boundTest procedure(returnMat), pointer, nopass:: test end type boundTest contains function returnMat( a, b ) result( mat ) integer:: a, b double precision, dimension(a,b):: mat mat = 1d0 end function returnMat end module bugTestMod program bugTest use bugTestMod implicit none type( boundTest ):: testObj double precision, dimension(2,2):: testCatch testObj%test => returnMat testCatch = testObj%test(2,2) print *,testCatch if (sum(testCatch)/=4) call abort() end program bugTest ! { dg-final { cleanup-modules "bugTestMod" } }
next prev parent reply other threads:[~2010-12-12 16:38 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-11 20:33 [Bug fortran/46896] New: " jvdelisle at gcc dot gnu.org 2010-12-11 23:52 ` [Bug fortran/46896] [4.2/4.3/4.4/4.5/4/6 Regression] " hjl.tools at gmail dot com 2010-12-11 23:52 ` hjl.tools at gmail dot com 2010-12-12 0:39 ` jvdelisle at gcc dot gnu.org 2010-12-12 9:02 ` [Bug fortran/46896] [4.2/4.3/4.4/4.5/4.6 " burnus at gcc dot gnu.org 2010-12-12 14:58 ` mikael at gcc dot gnu.org 2010-12-12 15:04 ` mikael at gcc dot gnu.org 2010-12-12 16:38 ` dominiq at lps dot ens.fr [this message] 2010-12-12 20:48 ` dominiq at lps dot ens.fr 2010-12-13 12:04 ` pault at gcc dot gnu.org 2010-12-13 12:07 ` pault at gcc dot gnu.org 2010-12-13 21:25 ` mikael at gcc dot gnu.org 2010-12-14 5:35 ` pault at gcc dot gnu.org 2010-12-16 14:43 ` [Bug fortran/46896] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu.org 2010-12-16 15:36 ` jakub at gcc dot gnu.org 2011-01-08 19:44 ` pault at gcc dot gnu.org 2011-02-14 9:29 ` burnus at gcc dot gnu.org 2011-02-14 13:51 ` paul.richard.thomas at gmail dot com 2011-03-13 14:16 ` pault at gcc dot gnu.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=bug-46896-4-gGNWx3B2U5@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).