[Bug fortran/84276] Invalid error for valid statement function

mecej4 at outlook dot com gcc-bugzilla@gcc.gnu.org
Fri Feb 9 14:03:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84276

mecej4 <mecej4 at outlook dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mecej4 at outlook dot com

--- Comment #8 from mecej4 <mecej4 at outlook dot com> ---
(In reply to Steve Kargl from comment #7)
> Ugh.  Statement functions should be removed from the Standard.
> The simply fix, of course, does not work if someone is clever
> and uses keywords in a reference that involves a statement
> function.
> 
> ...
>       w = qofs(i = i, s = hh)
> ...

Keyword argument lists are not allowed for statement functions, are they? I
realize that the compiler will have to detect and flag attempts to use keyword
arguments as disallowed, but no code generation is needed.


More information about the Gcc-bugs mailing list