public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mrestelli at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/42597]  New: ICE with procedure pointer initialized to null()
Date: Sun, 03 Jan 2010 17:43:00 -0000	[thread overview]
Message-ID: <bug-42597-17129@http.gcc.gnu.org/bugzilla/> (raw)

The attached code (which seems fine to me) produces an internal
compiler error.

gfortran -c pp.f90 -o pp.o
f951: internal compiler error: in gfc_build_null_descriptor, at
fortran/trans-array.c:372

gfortran --version
GNU Fortran (GCC) 4.5.0 20091229 (experimental)


module mod_a
 implicit none
 public :: p_fun
 private

 abstract interface
  pure function intf(x) result(y)
   real, intent(in) :: x(:,:)
   real :: y(size(x,1),size(x,1),size(x,2))
  end function intf
 end interface

 !procedure(intf), pointer :: p_fun ! this works
 procedure(intf), pointer :: p_fun => null()

end module mod_a


-- 
           Summary: ICE with procedure pointer initialized to null()
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mrestelli at gmail dot com
 GCC build triplet: GNU Fortran (GCC) 4.5.0 20091229 (experimental)
  GCC host triplet: Linux 2.6.27-gentoo-r8 x86_64 AMD Turion(tm) 64 Mobile
                    Technolog


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


             reply	other threads:[~2010-01-03 17:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-03 17:43 mrestelli at gmail dot com [this message]
2010-01-04  9:55 ` [Bug fortran/42597] " burnus at gcc dot gnu dot org
2010-01-04 11:33 ` burnus at gcc dot gnu dot org
2010-01-07  8:12 ` burnus at gcc dot gnu dot org
2010-01-07  8:13 ` burnus at gcc dot gnu dot org
2010-02-07  4:03 ` hjl dot tools at gmail dot com

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-42597-17129@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: 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).