From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24741 invoked by alias); 10 May 2007 11:19:44 -0000 Received: (qmail 24694 invoked by uid 48); 10 May 2007 11:19:34 -0000 Date: Thu, 10 May 2007 11:19:00 -0000 Message-ID: <20070510111934.24693.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/30746] 50th Anniversary Bug - Forward reference to contained function In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pault 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: 2007-05/txt/msg00774.txt.bz2 ------- Comment #4 from pault at gcc dot gnu dot org 2007-05-10 12:19 ------- (In reply to comment #3) > The patch below does the job. Not quite - apart from 'n' not being declared, this patch causes a couple of regressions. These are easily fixed. However, if the function x has a different number of arguments to the rank of variable 'x', an error ensues. This is going to require a bit more work but it is promising. Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30746