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

            Bug ID: 126890
           Summary: -fc-prototypes missing arguments for procedure dummy
                    arguments
           Product: gcc
           Version: 16.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Nicholas.BREALEY at 3ds dot com
  Target Milestone: ---

Created attachment 65342
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65342&action=edit
example source file

gfortran -fc-prototypes does omits arguments for procedure dummy arguments.

Using the following command on the attached file:
gfortran -c -fsyntax-only -fc-prototypes pointer.f90
generates output containing the lines:

void proc (const CFI_cdesc_t *str);
void subr (void (*p) ());

instead of:

void proc (const CFI_cdesc_t *str);
void subr (void (*p) (const CFI_cdesc_t *));

Reply via email to