From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11667 invoked by alias); 2 Nov 2007 07:40:23 -0000 Received: (qmail 11574 invoked by uid 48); 2 Nov 2007 07:40:10 -0000 Date: Fri, 02 Nov 2007 07:40:00 -0000 Message-ID: <20071102074010.11573.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/33945] PROCEDURE in module somtimes wrongly rejected In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus 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-11/txt/msg00121.txt.bz2 ------- Comment #2 from burnus at gcc dot gnu dot org 2007-11-02 07:40 ------- (In reply to comment #1) > The statement: > procedure x > is an F2003 feature allowing the word 'module' preceding as optional. Note: MODULE PROCEDURE and PROCEDURE mean different things. "MODULE PROCEDURE" can only be a procedure which is a procedure from that module. "PROCEDURE" can be any procedure whose interface is explicitly known: Module procedures, use-associated procedures, external procedures (via INTERFACE or PROCEDURE(...) statement). > If I use 'module procedure x' the test case compiles OK for me. I think this implies another bug as I believe there is not any module procedure in that module. Using "MODULE PROCEDURE" other compilers give also an error: NAG f95: Error: af.f90, line 11: Undefined module procedure X g95: Error: EXTERNAL-PROC procedure 'x' at (1) is already a MODULE-PROC procedure > I think I may have fixed this with my pr33162 patch. I seem to remember > bumping into this 'Duplicate PROCEDURE attribute specified' error somewhere > along the way. I will try your pr33162 patch. (Might take a while since I have at the moment only a lousy internet connection.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33945