https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83803
Bug ID: 83803 Summary: Using -fc-prototypes on modules with empty dummy arg lists does not close paren. Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: 3dw4rd at verizon dot net Target Milestone: --- Created attachment 43101 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43101&action=edit nocloseparen.f95 module. The following module: -------------------------------------------------------------------------- module voidfunc use iso_c_binding integer :: fvflag contains subroutine zeroflag() bind(c) fvflag = 0 end subroutine integer(c_int) function showflag() bind(c) showflag = fvflag end function end module -------------------------------------------------------------------------- Generates the following prototype: $ ./bin/gfortran -c -fc-prototypes nocloseparen.f95 int showflag (; void zeroflag (; $ No crashes or ICEs. Compiler info: