This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28174] 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:58:44 -0000
- Subject: [Bug fortran/28174] Corruption of multiple character arrays when passing array sections
- References: <bug-28174-6318@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from anlauf at gmx dot de 2006-06-26 20:58 -------
Created an attachment (id=11759)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11759&action=view)
Testcase
Output of testcase:
Before foo:
a(1)=abc def ghij
a(2)=klm nop qrst
b(1)=abc def ghij
b(2)=klm nop qrst
In foo: c(1)=f ghi
After foo:
a(1)=abc d
a(2)=klm n
b(1)=abc d
b(2)=klm n
Bug: array a corrupted in subroutine call!
Bug: array b corrupted in subroutine call!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28174