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] [F03] array-valued procedure pointer components
Date: Fri, 10 Jul 2009 12:25:00 -0000	[thread overview]
Message-ID: <20090710122446.12430.qmail@sourceware.org> (raw)
In-Reply-To: <bug-40646-13404@http.gcc.gnu.org/bugzilla/>



------- Comment #8 from janus at gcc dot gnu dot org  2009-07-10 12:24 -------
After most of the PPC issues have been fixed by r149419, some leftover trouble:
The following two variants of comment #2 and comment #4 both fail with

internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1042

********************************

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
  testObj%test => returnMat
  print *,testObj%test(2,2)
end program bugTest

********************************

module bugTestMod
  implicit none
  procedure(returnMat), pointer :: pp
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
  pp => returnMat
  print *,pp(2,2)
end program bugTest


-- 


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


  parent reply	other threads:[~2009-07-10 12:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-04  7:50 [Bug fortran/40646] New: ICE assigning array return value from type-bound procedure 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
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 [this message]
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=20090710122446.12430.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: link
Be 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).