This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30450] New: calling subroutine with constant parameter
- From: "milan at cmm dot ki dot si" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jan 2007 17:51:49 -0000
- Subject: [Bug fortran/30450] New: calling subroutine with constant parameter
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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