This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25029] New: Assumed size array can be associated with array pointer without upper bound of last dimension
- From: "iguchi at coral dot t dot u-tokyo dot ac dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2005 08:50:24 -0000
- Subject: [Bug fortran/25029] New: Assumed size array can be associated with array pointer without upper bound of last dimension
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In the following program, the pointer association is not allowed.
However, I can compile successfully, and get no output after the execution.
I think this is wrong behavior.
program ptrtest
implicit none
integer a(4)
a(1:4) = 1
contains
subroutine foo(m)
integer, target :: m(*)
integer, pointer :: p(:)
p => m
print *, p
end subroutine
end program
--
Summary: Assumed size array can be associated with array pointer
without upper bound of last dimension
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: iguchi at coral dot t dot u-tokyo dot ac dot jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25029