https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87689
--- Comment #15 from Alan Modra <amodra at gmail dot com> --- I've regression tested the patch on powerpc64le-linux, and of course verified that it fixes the testcase. I'm also fairly certain the patch intent is correct in the narrow sense of it correcting gfc_get_function_type behaviour. My comment about not being let loose near the gcc fortran support is because I have no idea whether the patch is the best patch possible. Also, as with any patch, reviewers should check the actual patch matches the intent. ;-) gfc_get_function_type currently calls build_varargs_function_type_vec for "normal" functions without arg info, which seems a perfectly reasonable way to say the function isn't prototyped. So the patch isn't introducing new behaviour.. By "normal" I mean functions that don't have hidden args for return values or multiple entry points. Just because you have arg info for the return type shouldn't make the function prototyped.