This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29785] Fortran 2003: POINTER Rank Remapping
- From: "mikael at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2010 18:21:31 -0000
- Subject: [Bug fortran/29785] Fortran 2003: POINTER Rank Remapping
- References: <bug-29785-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from mikael at gcc dot gnu dot org 2010-08-17 18:21 -------
(In reply to comment #7)
> Tobias (and all): Do you think we should check for "the size of data-target
> shall not be less than the size of data-pointer-object" at runtime when
> -fcheck=bounds is given?
>
Yes.
The existing bounds-check code checks that we don't access an array beyond what
its descriptor permits.
We have to check that we don't create a descriptor that has bounds beyond the
array limits, thus by-passing the bounds-check code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29785