This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27588] -fbounds-check should catch substring out of range accesses
- From: "pault 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 Jun 2006 21:01:03 -0000
- Subject: [Bug fortran/27588] -fbounds-check should catch substring out of range accesses
- References: <bug-27588-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pault at gcc dot gnu dot org 2006-06-05 21:01 -------
Tobias,
You are right, we do not check character lengths in assignment, yet. It is
another PR but I just do not recall which, right now. You are correct, that
this should be included in bounds checking. The standard demands that the
length of the rhs, in total, should not exceed that of the lhs.
Thank you for the report.
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-06-05 21:01:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27588