From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4874 invoked by alias); 1 Mar 2014 16:00:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 4816 invoked by uid 48); 1 Mar 2014 16:00:03 -0000 From: "anlauf at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/60370] TRANSPOSE on rhs of allocatable array assignment gives error with -fcheck=bounds Date: Sat, 01 Mar 2014 16:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: diagnostic, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gmx dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg00028.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60370 Harald Anlauf changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gmx dot de --- Comment #2 from Harald Anlauf --- PR52162 might be related. Running the code under comment #0 under valgrind, I get: ==31023== Memcheck, a memory error detector ==31023== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==31023== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==31023== Command: ./a.out ==31023== ==31023== Conditional jump or move depends on uninitialised value(s) ==31023== at 0x8049D22: MAIN__ (pr60370.f90:10) ==31023== by 0x804A16E: main (pr60370.f90:12) ==31023== ==31023== Conditional jump or move depends on uninitialised value(s) ==31023== at 0x8049D59: MAIN__ (pr60370.f90:10) ==31023== by 0x804A16E: main (pr60370.f90:12) ==31023== ==31023== Conditional jump or move depends on uninitialised value(s) ==31023== at 0x8049D90: MAIN__ (pr60370.f90:10) ==31023== by 0x804A16E: main (pr60370.f90:12) ==31023== ==31023== Conditional jump or move depends on uninitialised value(s) ==31023== at 0x8049DC7: MAIN__ (pr60370.f90:10) ==31023== by 0x804A16E: main (pr60370.f90:12) ==31023== ==31023== Conditional jump or move depends on uninitialised value(s) ==31023== at 0x8049E02: MAIN__ (pr60370.f90:10) ==31023== by 0x804A16E: main (pr60370.f90:12) ==31023== At line 10 of file pr60370.f90 Fortran runtime error: ==31023== Conditional jump or move depends on uninitialised value(s) etc.