This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28174] New: Corruption of multiple character arrays when passing array sections
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2006 20:57:30 -0000
- Subject: [Bug fortran/28174] New: Corruption of multiple character arrays when passing array sections
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Here's a very strange example of data corruption when passing
a character array section in the form
call foo (a(:)(7:11))
to a subroutine even if the parameter is declared as INTENT(IN).
Furthermore, even another array gets corrupted which is intended
to hold a copy.
See testcase for details.
Cheers,
-ha
--
Summary: Corruption of multiple character arrays when passing
array sections
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at gmx dot de
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28174