From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5743 invoked by alias); 26 Jun 2006 20:57:40 -0000 Received: (qmail 3267 invoked by uid 48); 26 Jun 2006 20:57:30 -0000 Date: Mon, 26 Jun 2006 20:58:00 -0000 Subject: [Bug fortran/28174] New: Corruption of multiple character arrays when passing array sections X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "anlauf at gmx dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg02344.txt.bz2 List-Id: 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