[Bug fortran/30450] New: calling subroutine with constant parameter
milan at cmm dot ki dot si
gcc-bugzilla@gcc.gnu.org
Fri Jan 12 17:51:00 GMT 2007
I checked google and gcc bugzila and couldn't find if this is standard or not
but the following program should work (fortran used to pass all arguments as
reference!!??):
call sub(1)
end
subroutine sub(i)
integer i
i=i+1
return
end
Of course this program is very dumb but the functionality it requires has many
uses in real life programs. Right now the program segfaults!
--
Summary: calling subroutine with constant parameter
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: milan at cmm dot ki dot si
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30450
More information about the Gcc-bugs
mailing list