[Bug fortran/91390] New: treatment of extra parameter in a subroutine call
valera.veryazov at teokem dot lu.se
gcc-bugzilla@gcc.gnu.org
Wed Aug 7 14:08:00 GMT 2019
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).
More information about the Gcc-bugs
mailing list