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/21256] New: Illegal use of assumed-sized array in an array expression


Gfortran is not checking if an assumed sized array is used correctly
in an array expression.  Gfortran compiles the following without an
error or warning

subroutine e(a)
   real, intent(out) :: a(*)
   a = 1.e0
end subroutine

NAG's compiler issues
kargl[210] f95 -c e.f90
Error: e.f90, line 3: Invalid appearance of assumed-size array name A
[f95 error termination]

which is confirmed by Lahey's web based Fortran checker.

-- 
           Summary: Illegal use of assumed-sized array in an array
                    expression
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kargl at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21256


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