This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29800] New: -fbounds-check: For derived types, write not also compound name
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Nov 2006 22:57:23 -0000
- Subject: [Bug fortran/29800] New: -fbounds-check: For derived types, write not also compound name
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Currently one gets for
Var(1)%Array(k) = k
the error:
out of bounds for array 'var'
sunf95 writes:
Subscript number 1 has value 11 in array 'ARRAY'
I think the output of SUN is more correct; best would be of cause:
'var%array'
Test case: bnd11 of
http://www.polyhedron.com/pb05/linux/diagnose.html
--
Summary: -fbounds-check: For derived types, write not also
compound name
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29800