public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/42936] New: Result of passing NULL() as actual arg doesn't inherit characteristics from the corresponding dummy arg
@ 2010-02-02 11:00 mathewc at nag dot co dot uk
2010-02-02 12:58 ` [Bug fortran/42936] " burnus at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: mathewc at nag dot co dot uk @ 2010-02-02 11:00 UTC (permalink / raw)
To: gcc-bugs
> gfortran --version
GNU Fortran (GCC) 4.5.0 20100128 (experimental)
Copyright (C) 2010 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
> cat null.f90
SUBROUTINE PASSES_NULL
INTERFACE
SUBROUTINE SUB(I)
INTEGER, POINTER :: I(:,:,:)
END SUBROUTINE SUB
END INTERFACE
CALL SUB(NULL())
END SUBROUTINE PASSES_NULL
> gfortran -c null.f90
null.f90:7.11:
CALL SUB(NULL())
1
Error: Rank mismatch in argument 'i' at (1) (3 and 0)
> nagfor -c null.f90
NAG Fortran Compiler Release 5.2(703)
[NAG Fortran Compiler normal termination]
--
Summary: Result of passing NULL() as actual arg doesn't inherit
characteristics from the corresponding dummy arg
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mathewc at nag dot co dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42936
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/42936] Result of passing NULL() as actual arg doesn't inherit characteristics from the corresponding dummy arg
2010-02-02 11:00 [Bug fortran/42936] New: Result of passing NULL() as actual arg doesn't inherit characteristics from the corresponding dummy arg mathewc at nag dot co dot uk
@ 2010-02-02 12:58 ` burnus at gcc dot gnu dot org
2010-02-02 17:22 ` burnus at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-02-02 12:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2010-02-02 12:58 -------
Confirmed (no regression).
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |32834
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2010-02-02 12:58:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42936
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/42936] Result of passing NULL() as actual arg doesn't inherit characteristics from the corresponding dummy arg
2010-02-02 11:00 [Bug fortran/42936] New: Result of passing NULL() as actual arg doesn't inherit characteristics from the corresponding dummy arg mathewc at nag dot co dot uk
2010-02-02 12:58 ` [Bug fortran/42936] " burnus at gcc dot gnu dot org
@ 2010-02-02 17:22 ` burnus at gcc dot gnu dot org
2010-02-03 8:26 ` burnus at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-02-02 17:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from burnus at gcc dot gnu dot org 2010-02-02 17:22 -------
Patch: http://gcc.gnu.org/ml/fortran/2010-02/msg00014.html
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |burnus at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2010-02-02 12:58:06 |2010-02-02 17:22:14
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42936
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/42936] Result of passing NULL() as actual arg doesn't inherit characteristics from the corresponding dummy arg
2010-02-02 11:00 [Bug fortran/42936] New: Result of passing NULL() as actual arg doesn't inherit characteristics from the corresponding dummy arg mathewc at nag dot co dot uk
2010-02-02 12:58 ` [Bug fortran/42936] " burnus at gcc dot gnu dot org
2010-02-02 17:22 ` burnus at gcc dot gnu dot org
@ 2010-02-03 8:26 ` burnus at gcc dot gnu dot org
2010-02-03 8:26 ` burnus at gcc dot gnu dot org
2010-02-07 2:21 ` hjl dot tools at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-02-03 8:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from burnus at gcc dot gnu dot org 2010-02-03 08:26 -------
Subject: Bug 42936
Author: burnus
Date: Wed Feb 3 08:26:08 2010
New Revision: 156461
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156461
Log:
2010-02-03 Tobias Burnus <burnus@net-b.de>
PR fortran/42936
* interface.c (compare_parameter): Disable rank-checking
for NULL().
2010-02-03 Tobias Burnus <burnus@net-b.de>
PR fortran/42936
* gfortran.dg/null_4.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/null_4.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/interface.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42936
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/42936] Result of passing NULL() as actual arg doesn't inherit characteristics from the corresponding dummy arg
2010-02-02 11:00 [Bug fortran/42936] New: Result of passing NULL() as actual arg doesn't inherit characteristics from the corresponding dummy arg mathewc at nag dot co dot uk
` (2 preceding siblings ...)
2010-02-03 8:26 ` burnus at gcc dot gnu dot org
@ 2010-02-03 8:26 ` burnus at gcc dot gnu dot org
2010-02-07 2:21 ` hjl dot tools at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-02-03 8:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from burnus at gcc dot gnu dot org 2010-02-03 08:26 -------
FIXED on the trunk (for 4.5.0). Thanks for the report!
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42936
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/42936] Result of passing NULL() as actual arg doesn't inherit characteristics from the corresponding dummy arg
2010-02-02 11:00 [Bug fortran/42936] New: Result of passing NULL() as actual arg doesn't inherit characteristics from the corresponding dummy arg mathewc at nag dot co dot uk
` (3 preceding siblings ...)
2010-02-03 8:26 ` burnus at gcc dot gnu dot org
@ 2010-02-07 2:21 ` hjl dot tools at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-02-07 2:21 UTC (permalink / raw)
To: gcc-bugs
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42936
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-02-07 2:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-02 11:00 [Bug fortran/42936] New: Result of passing NULL() as actual arg doesn't inherit characteristics from the corresponding dummy arg mathewc at nag dot co dot uk
2010-02-02 12:58 ` [Bug fortran/42936] " burnus at gcc dot gnu dot org
2010-02-02 17:22 ` burnus at gcc dot gnu dot org
2010-02-03 8:26 ` burnus at gcc dot gnu dot org
2010-02-03 8:26 ` burnus at gcc dot gnu dot org
2010-02-07 2:21 ` hjl dot tools at gmail dot com
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).