From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13916 invoked by alias); 21 Feb 2007 15:14:04 -0000 Received: (qmail 13865 invoked by uid 48); 21 Feb 2007 15:13:45 -0000 Date: Wed, 21 Feb 2007 15:14:00 -0000 Message-ID: <20070221151345.13864.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/30902] gfortran produces wrong result with code using generic interface block In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "deji_aking at yahoo dot ca" 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-02/txt/msg02470.txt.bz2 ------- Comment #4 from deji_aking at yahoo dot ca 2007-02-21 15:13 ------- (In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #0) > > > By the way, NAG f95 detects the interface/procedure mismatch also for the > > original program as the interface and the subroutines are in the same file. > > This same-file error detection is also planed for gfortran. > > > > K'aro Deji, > > Or, more succinctly, the array in the interface is assumed shape, dimension > (:), whereas you have an automatic array in the subroutine. > > Change to > Effecting the change Paul suggested fixed it for me, Thanks all. The interface and the subroutine are in different files in the original code. Deji -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30902