This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30873] ENTRY without explict RESULT does not work for recursive functions
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Feb 2007 13:53:32 -0000
- Subject: [Bug fortran/30873] ENTRY without explict RESULT does not work for recursive functions
- References: <bug-30873-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from burnus at gcc dot gnu dot org 2007-02-21 13:53 -------
> 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.
This is a very old check. I could trace it back to:
r69825: * gcc/fortran: New front end.
I just checked the current g95 source code and it also doesn't contain this
error anymore.
> 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.
I just comment it and run a make check-gfortran, which succeeded.
Maybe one should re-read the ENTRY section of the standard and try to come up
with something which is not covered, but I think this patch has no unwanted
side effects.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30873