From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8588 invoked by alias); 21 Feb 2007 11:03:07 -0000 Received: (qmail 8521 invoked by uid 48); 21 Feb 2007 11:02:55 -0000 Date: Wed, 21 Feb 2007 11:03:00 -0000 Message-ID: <20070221110255.8520.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/30873] ENTRY without explict RESULT does not work for recursive functions 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-02/txt/msg02437.txt.bz2 ------- Comment #2 from pault at gcc dot gnu dot org 2007-02-21 11:02 ------- Removing the error call if (proc->attr.recursive && result == NULL) { gfc_error ("RESULT attribute required in ENTRY statement at %C"); return MATCH_ERROR; } at decl.c:3032 fixes the problem. I guess that there is a testsuite case for this? I have not regtested it. This looks to me as if it is a mis-interpretation or simplification of the standard - it had better be checked. As with others, if anybody wants to run with this, be my guest. Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30873