This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25051] NULL doesn't get its argument type (rank)
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Feb 2006 20:13:51 -0000
- Subject: [Bug fortran/25051] NULL doesn't get its argument type (rank)
- References: <bug-25051-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from kargl at gcc dot gnu dot org 2006-02-10 20:13 -------
Fixed on 4.1 and trunk by the patch committed for pr 20858.
troutmask:sgk[226] cat > ptr.f90
INTEGER, POINTER, DIMENSION(:,:) :: i
INTEGER, POINTER, DIMENSION(:) :: a
a=>NULL(i)
END
troutmask:sgk[227] gfc41 -c ptr.f90
In file ptr.f90:3
a=>NULL(i)
1
Error: Different ranks in pointer assignment at (1)
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25051