This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35470] Valid pointer assigment code gives compilation errors
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Mar 2008 22:00:12 -0000
- Subject: [Bug fortran/35470] Valid pointer assigment code gives compilation errors
- References: <bug-35470-15860@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2008-03-05 22:00 -------
Confirmed as rejecting valid code, reduced testcase is:
subroutine sub(arr)
type real_pointer
real, pointer :: p(:)
end type real_pointer
type(real_pointer), dimension(*) :: arr
real, pointer :: p(:)
p => arr(1)%p
end subroutine
$ gfortran -c a.f90
a.f90:9.7:
p => arr(1)%p
1
Error: The upper bound in the last dimension must appear in the reference to
the assumed size array 'arr' at (1)
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2008-03-05 22:00:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35470