From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8978 invoked by alias); 16 Nov 2008 11:39:37 -0000 Received: (qmail 29773 invoked by uid 48); 16 Nov 2008 11:38:16 -0000 Date: Sun, 16 Nov 2008 11:39:00 -0000 Message-ID: <20081116113816.29771.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/38135] RESHAPE gives wrong result In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "mikael at gcc dot gnu dot org" 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: 2008-11/txt/msg01301.txt.bz2 ------- Comment #4 from mikael at gcc dot gnu dot org 2008-11-16 11:38 ------- (In reply to comment #3) > The problem appears to be the empty SOURCE with the presence of PAD. I agree. There are two bugs actually: (1) the front-end doesn't expand the reshape. (at least in this case: reshape([integer::],[N,N],[1,2,2,2]) ) (2) reshape gives wrong results. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38135