[Bug fortran/42651] Functions with result: Wrongly accepts attributes to function name
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 20 00:07:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42651
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
CC| |kargl at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |kargl at gcc dot gnu.org
--- Comment #2 from kargl at gcc dot gnu.org ---
From F2018,
C1560 (R1530) If RESULT appears, the function-name shall not appear
in any specification statement in the scoping unit of the function
subprogram.
Note, a similar constraint appears in F2003.
Thus, the error messages in comment #1 are correct. The problem
is that the matchers for some attribute statements do not check
for a problem. I have a fix for the one in the code contained
herein.
More information about the Gcc-bugs
mailing list