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