public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "p dot w dot draper at durham dot ac dot uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/30888] New: %VAL construct fails with argument procedures
Date: Tue, 20 Feb 2007 17:40:00 -0000 [thread overview]
Message-ID: <bug-30888-11040@http.gcc.gnu.org/bugzilla/> (raw)
When calling procedures which are passed as arguments to
a subroutine the %VAL construct has inconsistent behaviour.
Consider the following code:
SUBROUTINE VALTEST( DOIT )
EXTERNAL DOIT
INTEGER P
INTEGER I
I = 0
P = 0
CALL DOIT( %VAL( P ) )
CALL DOIT( I )
CALL DOIT( %VAL( P ) )
END
> gfortran -c valtest.f
valtest.f:9.22:
CALL DOIT( %VAL( P ) )
1
Error: By-value argument at (1) is not allowed in this context
which is an error caused by the second identical call to DOIT(%VAL(P)).
--
Summary: %VAL construct fails with argument procedures
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: p dot w dot draper at durham dot ac dot uk
GCC host triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30888
next reply other threads:[~2007-02-20 17:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-20 17:40 p dot w dot draper at durham dot ac dot uk [this message]
2007-02-20 19:54 ` [Bug fortran/30888] " burnus at gcc dot gnu dot org
2007-02-23 16:19 ` burnus at gcc dot gnu dot org
2007-02-28 18:18 ` burnus at gcc dot gnu dot org
2007-02-28 18:27 ` burnus 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=bug-30888-11040@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).