This is the mail archive of the 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/25080] ICE/missing error on different ranks for dummy and actual arguments

------- Comment #1 from eedelman at gcc dot gnu dot org  2005-11-28 22:13 -------
With gfortran 4.2.0 20051128 I get an ICE for this code. 

This slightly different code (but with basically the same error), however,
compiles and outputs 10, when we should get an error:

integer :: a
print *, a
    integer function T1(x)
        integer, intent(in) :: x(2,2)
        T1 = sum(x)
    end function T1


eedelman at gcc dot gnu dot org changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |diagnostic, ice-on-invalid-
                   |                            |code
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-28 22:13:37
               date|                            |
            Summary|better diagnostic needed    |ICE/missing error on
                   |                            |different ranks for dummy
                   |                            |and actual arguments

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