[Bug fortran/58307] Bogus error 'Function requires an argument list'

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 3 13:05:00 GMT 2013


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

--- Comment #1 from janus at gcc dot gnu.org ---
(In reply to janus from comment #0)
> produces (with 4.7, 4.8 and trunk) the error message
> 
>   real(point) :: this
>             1
> Error: Function 'point' requires an argument list at (1)


This error message comes from gfc_match_rvalue in primary.c.

For some reason, the 'point' symbol has attr.function and attr.generic set and
attr.flavor == FL_PROCEDURE.

Maybe the problem was introduced with the implementation of 'constructors' in
4.7?



More information about the Gcc-bugs mailing list