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

--- Comment #19 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Created attachment 60593
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60593&action=edit
Possible patch to change compile behavior

This patch changes the fortran/lang-spec.h as a possible better approach.

$ gfc pr108369.f 
pr108369.f:10:17:

   10 |       CALL SN512(C1N001(5)(2:9),CVCOMP)
      |                 1
Warning: Actual argument contains too few elements for dummy argument ‘c1d001’
(19/48) at (1)

and

$ gfc -x f77 pr108369.f 
pr108369.f:10:17:

   10 |       CALL SN512(C1N001(5)(2:9),CVCOMP)
      |                 1
Warning: Actual argument contains too few elements for dummy argument ‘c1d001’
(19/48) at (1)

What this is doing is invoking -std=legacy for files with suffixes that imply
legacy files such as .f

This is my first dive on the lang-spec file so there may be something a little
different we do.

Reply via email to