[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
gcc-bugzilla@gcc.gnu.org
Tue Feb 2 11:00:00 GMT 2010
> 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
More information about the Gcc-bugs
mailing list