From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11448 invoked by alias); 15 May 2007 06:48:17 -0000 Received: (qmail 11372 invoked by uid 48); 15 May 2007 06:48:00 -0000 Date: Tue, 15 May 2007 06:48:00 -0000 Message-ID: <20070515064800.11371.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/31197] [4.3/4.2 regression^2] TRANSPOSE/RESHAPE and strings In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "elizabeth dot l dot yip at boeing dot com" 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 X-SW-Source: 2007-05/txt/msg01097.txt.bz2 ------- Comment #10 from elizabeth dot l dot yip at boeing dot com 2007-05-15 07:48 ------- The following code exposes the problem relating to conjg(transpose(.)), with which gfortran returns the wrong answer. If we break conjg(transpose(.)) into two lines, then we can get the right answer. Is this related to bugs 31196, 31197 and 31258? Should I resubmit this as a new bug? I have tried versions 4.1, 4.2 and the latest 4.3 (05-14-07). I could'nt find a version that works. Elizabeth Yip --------------------------------------------------------------------- program main implicit none complex (kind=4),dimension(2,2)::a,b,c a(1,1) = (1.,1.) a(2,1) = (2.,2.) a(1,2) = (3.,3.) a(2,2) = (4.,4.) print *,"original",a b=conjg(transpose(a)) print *,"H(a)-wrong",b c=transpose(a) c=conjg(c) print *,"H(a)-right",c END program main -- elizabeth dot l dot yip at boeing dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |elizabeth dot l dot yip at | |boeing dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31197