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

            Bug ID: 91390
           Summary: treatment of extra parameter in a subroutine call
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: valera.veryazov at teokem dot lu.se
  Target Milestone: ---

==== file1.f =====
        program test
            n=10
c   correct call
           call s('hej')
c   one extra parameter
           call s('hej',n)
           end
==== file2.f =====
       subroutine s(a)
       character a*(*)
       print *, len(a)
       end

First call is correct, the second call prints garbage. 
(of course, it is not a bug, but a feature of handling 
strings as a parameter).

Reply via email to