public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/14056] New: [gfortran] Error passing intrinsic function as actual argument in subroutine
@ 2004-02-07 2:34 bdavis9659 at comcast dot net
2004-02-07 18:38 ` [Bug fortran/14056] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-02-07 2:34 UTC (permalink / raw)
To: gcc-bugs
Distilled from the NIST F77 compliance test FM317.FOR
$ cat xxx.f
INTRINSIC IABS
INTEGER FF324
IVCOMP = FF324(IABS,-7)
PRINT*,IVCOMP
END
INTEGER FUNCTION FF324(NINT, IDON03) 00010324
C THIS FUNCTION IS USED BY TESTS 029, 030 AND 031 OF MAIN 00020324
C PROGRAM FM317 TO TEST THE ASSOCIATION OF EXTERNAL FUNCTION AND 00030324
C INTRINSIC FUNCTION NAMES USED AS ACTUAL ARGUMENTS TO A PROCEDURE 00040324
C NAME USED AS A DUMMY ARGUMENT. THIS FUNCTION REFERENCES THE 00050324
C EXTERNAL FUNCTION OR INTRINSIC FUNCTION PASSED AS A PROCEDURE 00060324
C NAME ARGUMENT, INCREMENTING THE RESULT BY ONE BEFORE RETURNING 00070324
C THE RESULT AS THE FUNCTION VALUE. 00080324
PRINT*,'the arg is ',IDON03
FF324 = NINT(IDON03) + 1 00090324
C **** THE NAME NINT IS A DUMMY ARGUMENT 00100324
C AND NOT AN INTRINSIC FUNCTION REFERENCE ***** 00110324
RETURN 00120324
END 00130324
$ /usr/local/bin/gfortran xxx.f
/tmp/cceZLLAo.o(.text+0x10): In function `MAIN__':
: undefined reference to `specific__abs_i4'
collect2: ld returned 1 exit status
[bdavis@localhost ~]$ g77 xxx.f
[bdavis@localhost ~]$ ./a.out
the arg is -7
8
$ /usr/local/bin/gfortran --version
GNU Fortran 95 (GCC 3.5-tree-ssa 20040206 (merged 20040126))
Copyright (C) 2003 Free Software Foundation, Inc.
--
Summary: [gfortran] Error passing intrinsic function as actual
argument in subroutine
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bdavis9659 at comcast dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14056
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/14056] [gfortran] Error passing intrinsic function as actual argument in subroutine
2004-02-07 2:34 [Bug fortran/14056] New: [gfortran] Error passing intrinsic function as actual argument in subroutine bdavis9659 at comcast dot net
@ 2004-02-07 18:38 ` pinskia at gcc dot gnu dot org
2004-04-25 20:27 ` [Bug fortran/14056] [gfortran] specific__abs_i4 routine is missing bdavis9659 at comcast dot net
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-07 18:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-07 18:38 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2004-02-07 18:38:11
date| |
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14056
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/14056] [gfortran] specific__abs_i4 routine is missing
2004-02-07 2:34 [Bug fortran/14056] New: [gfortran] Error passing intrinsic function as actual argument in subroutine bdavis9659 at comcast dot net
2004-02-07 18:38 ` [Bug fortran/14056] " pinskia at gcc dot gnu dot org
@ 2004-04-25 20:27 ` bdavis9659 at comcast dot net
2004-04-27 11:34 ` cvs-commit at gcc dot gnu dot org
2004-04-27 11:38 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-04-25 20:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bdavis9659 at comcast dot net 2004-04-25 19:57 -------
changed summary to be more specific.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[gfortran] Error passing |[gfortran]
|intrinsic function as actual|specific__abs_i4 routine is
|argument in subroutine |missing
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14056
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/14056] [gfortran] specific__abs_i4 routine is missing
2004-02-07 2:34 [Bug fortran/14056] New: [gfortran] Error passing intrinsic function as actual argument in subroutine bdavis9659 at comcast dot net
2004-02-07 18:38 ` [Bug fortran/14056] " pinskia at gcc dot gnu dot org
2004-04-25 20:27 ` [Bug fortran/14056] [gfortran] specific__abs_i4 routine is missing bdavis9659 at comcast dot net
@ 2004-04-27 11:34 ` cvs-commit at gcc dot gnu dot org
2004-04-27 11:38 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-04-27 11:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-04-27 11:12 -------
Subject: Bug 14056
CVSROOT: /cvs/gcc
Module name: gcc
Branch: tree-ssa-20020619-branch
Changes by: bdavis@gcc.gnu.org 2004-04-27 11:12:33
Modified files:
gcc/testsuite : ChangeLog.tree-ssa
libgfortran : Makefile.am Makefile.in
Added files:
gcc/testsuite/gfortran.fortran-torture/execute: spec_abs.f90
libgfortran/generated: _abs_i4.f90
Log message:
PR fortran/14056
* gfortran.fortran-torture/execute/spec_abs.f90: Add new test.
* generated/_abs_i4.f90: New file.
* Makefile.am: Add it.
* Makefile.in: Regenerate.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.230&r2=1.1.2.231
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/spec_abs.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/Makefile.am.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.9&r2=1.1.2.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/Makefile.in.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.9&r2=1.1.2.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/_abs_i4.f90.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14056
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/14056] [gfortran] specific__abs_i4 routine is missing
2004-02-07 2:34 [Bug fortran/14056] New: [gfortran] Error passing intrinsic function as actual argument in subroutine bdavis9659 at comcast dot net
` (2 preceding siblings ...)
2004-04-27 11:34 ` cvs-commit at gcc dot gnu dot org
@ 2004-04-27 11:38 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-27 11:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-27 11:31 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14056
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-04-27 11:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-07 2:34 [Bug fortran/14056] New: [gfortran] Error passing intrinsic function as actual argument in subroutine bdavis9659 at comcast dot net
2004-02-07 18:38 ` [Bug fortran/14056] " pinskia at gcc dot gnu dot org
2004-04-25 20:27 ` [Bug fortran/14056] [gfortran] specific__abs_i4 routine is missing bdavis9659 at comcast dot net
2004-04-27 11:34 ` cvs-commit at gcc dot gnu dot org
2004-04-27 11:38 ` pinskia at gcc dot gnu dot org
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).