[Bug fortran/24633] MODULE attribute conflicts with PROCEDURE attribute

anglade at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Nov 2 13:28:00 GMT 2005



------- Comment #2 from anglade at gmail dot com  2005-11-02 13:28 -------
(In reply to comment #1)
> Full testcase:
> module abc
> contains
> function abc()
> i=1
> end function
> end module
> 
> 
> There is actually two problems here, the first is the message about the
> conflicts is not very clear.  The second issue is that the error recovery is
> not really good in that we don't really enter a function scope (sorry I am
> using C terms, I don't know a better way of describing the issue).
> 


Sorry for being unclear.
1) The error in the test case is that the function and the module have the same
name. 
2) The problem with gfortran is not that it does any mistake. It's just that
the output error message is not clear enough. 
3) sorry for not having put a "complete" dummy test case. here it is
module abc
contains
function abc(i)
integer::i,abc
abc=i
end function abc
end module abc


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24633



More information about the Gcc-bugs mailing list