public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/12841] New: [gfortran] passing null to a subroutine
@ 2003-10-30 12:32 jv244 at cam dot ac dot uk
2003-10-31 0:56 ` [Bug fortran/12841] " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: jv244 at cam dot ac dot uk @ 2003-10-30 12:32 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12841
Summary: [gfortran] passing null to a subroutine
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jv244 at cam dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org
passing NULL() to subroutines is allowed
MODULE T
PUBLIC :: A
CONTAINS
SUBROUTINE A(B)
REAL, POINTER :: B
IF (ASSOCIATED(B)) CALL ABORT()
END SUBROUTINE A
END MODULE T
USE T
CALL A(NULL())
END
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/12841] [gfortran] passing null to a subroutine
2003-10-30 12:32 [Bug fortran/12841] New: [gfortran] passing null to a subroutine jv244 at cam dot ac dot uk
@ 2003-10-31 0:56 ` pinskia at gcc dot gnu dot org
2003-11-03 5:12 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-31 0:56 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12841
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[gfortran] passing null to |[gfortran] passing null to
|a subroutine |a subroutine
Target Milestone|--- |tree-ssa
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/12841] [gfortran] passing null to a subroutine
2003-10-30 12:32 [Bug fortran/12841] New: [gfortran] passing null to a subroutine jv244 at cam dot ac dot uk
2003-10-31 0:56 ` [Bug fortran/12841] " pinskia at gcc dot gnu dot org
@ 2003-11-03 5:12 ` pinskia at gcc dot gnu dot org
2004-01-05 19:14 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-03 5:12 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12841
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2003-11-03 05:12:27
date| |
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/12841] [gfortran] passing null to a subroutine
2003-10-30 12:32 [Bug fortran/12841] New: [gfortran] passing null to a subroutine jv244 at cam dot ac dot uk
2003-10-31 0:56 ` [Bug fortran/12841] " pinskia at gcc dot gnu dot org
2003-11-03 5:12 ` pinskia at gcc dot gnu dot org
@ 2004-01-05 19:14 ` pinskia at gcc dot gnu dot org
2004-05-26 23:04 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-05 19:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-05 19:14 -------
Here is the error message:
In file pr12841.f90:11
CALL A(NULL())
1
Error: Type/rank mismatch in argument 'b' at (1)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12841
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/12841] [gfortran] passing null to a subroutine
2003-10-30 12:32 [Bug fortran/12841] New: [gfortran] passing null to a subroutine jv244 at cam dot ac dot uk
` (2 preceding siblings ...)
2004-01-05 19:14 ` pinskia at gcc dot gnu dot org
@ 2004-05-26 23:04 ` pinskia at gcc dot gnu dot org
2004-06-12 14:06 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-26 23:04 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.5.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12841
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/12841] [gfortran] passing null to a subroutine
2003-10-30 12:32 [Bug fortran/12841] New: [gfortran] passing null to a subroutine jv244 at cam dot ac dot uk
` (3 preceding siblings ...)
2004-05-26 23:04 ` pinskia at gcc dot gnu dot org
@ 2004-06-12 14:06 ` cvs-commit at gcc dot gnu dot org
2004-06-12 14:43 ` tobi at gcc dot gnu dot org
2004-06-13 2:47 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-12 14:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-12 14:06 -------
Subject: Bug 12841
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: tobi@gcc.gnu.org 2004-06-12 14:06:19
Modified files:
gcc/fortran : ChangeLog trans-decl.c trans-expr.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.fortran-torture/execute: nullarg.f90
Log message:
fortran/
PR fortran/12841
* interface.c (compare_parameter, compare_actual_formal): Don't
check types and array shapes for NULL()
* trans-expr.c (conv_function_call): No double indirection for
NULL()
( I had accidentally committed the interface.c part before)
testuite/
PR fortran/12841
* gfortran.fortran-torture/execute/null_arg.f90: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.65&r2=1.66
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-decl.c.diff?cvsroot=gcc&r1=1.11&r2=1.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-expr.c.diff?cvsroot=gcc&r1=1.9&r2=1.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3845&r2=1.3846
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/nullarg.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12841
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/12841] [gfortran] passing null to a subroutine
2003-10-30 12:32 [Bug fortran/12841] New: [gfortran] passing null to a subroutine jv244 at cam dot ac dot uk
` (4 preceding siblings ...)
2004-06-12 14:06 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-12 14:43 ` tobi at gcc dot gnu dot org
2004-06-13 2:47 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-06-12 14:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-06-12 14:43 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12841
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/12841] [gfortran] passing null to a subroutine
2003-10-30 12:32 [Bug fortran/12841] New: [gfortran] passing null to a subroutine jv244 at cam dot ac dot uk
` (5 preceding siblings ...)
2004-06-12 14:43 ` tobi at gcc dot gnu dot org
@ 2004-06-13 2:47 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-13 2:47 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12841
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-06-13 2:47 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-30 12:32 [Bug fortran/12841] New: [gfortran] passing null to a subroutine jv244 at cam dot ac dot uk
2003-10-31 0:56 ` [Bug fortran/12841] " pinskia at gcc dot gnu dot org
2003-11-03 5:12 ` pinskia at gcc dot gnu dot org
2004-01-05 19:14 ` pinskia at gcc dot gnu dot org
2004-05-26 23:04 ` pinskia at gcc dot gnu dot org
2004-06-12 14:06 ` cvs-commit at gcc dot gnu dot org
2004-06-12 14:43 ` tobi at gcc dot gnu dot org
2004-06-13 2:47 ` 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).