public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/38152] ICE for procedure pointer assignment
Date: Tue, 18 Nov 2008 19:55:00 -0000	[thread overview]
Message-ID: <20081118195407.25950.qmail@sourceware.org> (raw)
In-Reply-To: <bug-38152-16338@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from dominiq at lps dot ens dot fr  2008-11-18 19:54 -------
With the patches in comment #2 and #3, compiling the test in comment #0 on
i686-apple-darwin9 in 32 bit mode gives:

/var/tmp//ccMx60VC.s:13:non-relocatable subtraction expression, "_procptr"
minus "L00000000001$pb"
/var/tmp//ccMx60VC.s:13:symbol: "_procptr" can't be undefined in a subtraction
expression

Note that g95 compiles the test while ifort 11 returns:

pr38152.f90(4): error #8169: The specified interface is not declared.   [TEST]
  PROCEDURE(test), POINTER :: procptr
------------^
pr38152.f90(11): error #6437: A subroutine or function is calling itself
recursively.   [TEST]
    CALL bar (test)
--------------^
pr38152.f90(12): error #8191: The procedure target must be a procedure or a
procedure pointer.   [TEST]
    procptr => test
---------------^
compilation aborted for pr38152.f90 (code 1)


-- 


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


  parent reply	other threads:[~2008-11-18 19:55 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-16  9:28 [Bug fortran/38152] New: " domob at gcc dot gnu dot org
2008-11-16  9:28 ` [Bug fortran/38152] " domob at gcc dot gnu dot org
2008-11-16 19:01 ` janus at gcc dot gnu dot org
2008-11-17  0:02 ` burnus at gcc dot gnu dot org
2008-11-18 19:55 ` dominiq at lps dot ens dot fr [this message]
2008-11-19 16:31 ` dominiq at lps dot ens dot fr
2008-11-22 21:43 ` burnus at gcc dot gnu dot org
2009-01-13 19:47 ` domob at gcc dot gnu dot org
2009-01-15 22:56 ` janus at gcc dot gnu dot org
2009-01-16  6:50 ` [Bug fortran/38152] [4.4 Regression] procedure pointers as module variables burnus at gcc dot gnu dot org
2009-01-16 12:04 ` janus at gcc dot gnu dot org
2009-01-16 12:31 ` janus at gcc dot gnu dot org
2009-01-17 13:20 ` dominiq at lps dot ens dot fr
2009-01-17 13:25 ` burnus at gcc dot gnu dot org
2009-01-25  7:47 ` domob at gcc dot gnu dot org
2009-01-30 22:21 ` hjl dot tools at gmail dot com
2009-04-07 11:40 ` janus at gcc dot gnu dot org
2009-04-07 11:43 ` janus at gcc dot gnu dot org
2009-04-07 12:12 ` jakub at gcc dot gnu dot org
2009-04-07 12:41 ` janus at gcc dot gnu dot org
2009-04-07 16:25 ` janus at gcc dot gnu dot org
2009-04-08 14:04 ` janus at gcc dot gnu dot org
2009-04-08 14:12 ` janus at gcc dot gnu dot 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=20081118195407.25950.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).