This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36683] -fbounds-check failure for allocated array and spread
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2008 12:09:54 -0000
- Subject: [Bug fortran/36683] -fbounds-check failure for allocated array and spread
- References: <bug-36683-14178@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from tkoenig at gcc dot gnu dot org 2008-10-12 12:09 -------
The front end obligingly fills out the descriptor for
the libray with an extent of 3:
atmp.5.dim[1].stride = 5;
atmp.5.dim[1].lbound = 0;
atmp.5.dim[1].ubound = 2;
atmp.5.data = (void *) &A.6;
atmp.5.offset = 0;
_gfortran_spread (&atmp.5, &parm.4, &C.1545, &C.1546);
It does so without checking conformance with the rest of
the expression.
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tkoenig at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36683