[Bug fortran/98445] Bogus error: derived type used as an actual argument

townsend at astro dot wisc.edu gcc-bugzilla@gcc.gnu.org
Sat Dec 26 20:13:31 GMT 2020


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

--- Comment #2 from Rich Townsend <townsend at astro dot wisc.edu> ---
I know it's acceptable to overload a type name with one or more functions --
from 12.4.3.4.1 of the F2008 standard,

"A generic name may be the same as a derived-type name, in which case all of
the procedures in the interface block shall be functions."

In reading the rules for actual and dummy arguments (12.5.2), I don't see
anything prohibiting a function-overloaded type name being passed in. However,
I'm going to hit up comp.lang.fortran to see if I can get advice from one of
the Fortran congnescenti.


More information about the Gcc-bugs mailing list