This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/30450] New: calling subroutine with constant parameter


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]