Hello world, here is my first patch made from the git world. It certainly took enough time to work out how to to this, but I think I have it figured out now... Anyway, the fix is rather straightforward. We cannot have a reference on a function. If this slipped through on parsing, let's issue the error during resolution. Regression-tested. OK for trunk? Regards Thomas 2020-01-16 Thomas König PR fortran/44960 * resolve.c (resolve_function): Issue error when a function call contains a reference. 2020-01-16 Thomas König PR fortran/44960 * gfortran.dg/function_reference_1.f90: New test.