https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66942
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org --- (In reply to Vittorio Zecca from comment #0) > ! gcc-5.2.0/gcc/fortran/trans-expr.c:5701:19: runtime error: member call on > null pointer of type 'struct vec' > ! gfortran source line "retargs->splice (arglist);" > ! retargs is NULL > ! double check with "gcc_assert(retargs);" immediately before > call sub > END What compiler options? What target? What is sub? With subroutine sub end subroutine sub gfortran 6.0 and 5.2.1 compile, link your code, and executes without an error.