public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "janus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/40646] ICE assigning array return value from type-bound procedure Date: Sat, 04 Jul 2009 12:38:00 -0000 [thread overview] Message-ID: <20090704123802.30856.qmail@sourceware.org> (raw) In-Reply-To: <bug-40646-13404@http.gcc.gnu.org/bugzilla/> ------- Comment #2 from janus at gcc dot gnu dot org 2009-07-04 12:38 ------- The same program with procedure pointer components instead of type-bound procedures gives a different ICE: 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 !double precision, dimension(2,2):: testCatch type( boundTest ):: testObj testObj%test => returnMat ! ICE in gfc_trans_pointer_assignment, at fortran/trans-expr.c:4108 !write(*,*)testObj%test(2,2) !testCatch = testObj%test(2,2) !write(*,*)testCatch end program bugTest -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40646
next prev parent reply other threads:[~2009-07-04 12:38 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-07-04 7:50 [Bug fortran/40646] New: " burnus at gcc dot gnu dot org 2009-07-04 12:22 ` [Bug fortran/40646] " pault at gcc dot gnu dot org 2009-07-04 12:38 ` janus at gcc dot gnu dot org [this message] 2009-07-04 12:45 ` burnus at gcc dot gnu dot org 2009-07-04 14:11 ` janus at gcc dot gnu dot org 2009-07-05 19:14 ` pault at gcc dot gnu dot org 2009-07-06 7:37 ` [Bug fortran/40646] [F03] array-valued procedure pointer components janus at gcc dot gnu dot org 2009-07-09 14:07 ` janus at gcc dot gnu dot org 2009-07-10 12:25 ` janus at gcc dot gnu dot org 2009-07-13 13:42 ` janus at gcc dot gnu dot org 2009-07-13 13:45 ` janus at gcc dot gnu dot org 2009-07-13 16:58 ` dominiq at lps dot ens dot 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=20090704123802.30856.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).