------- 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

Reply via email to