[Bug fortran/30371] New: kill suboutine accepts (invalid) array arguments.

brooks at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jan 4 20:29:00 GMT 2007


GFortran allows the kill subroutine to have array arguments for the first two
arguments, but it appears to me that libgfortran doesn't handle them as arrays.
 Thus, I believe the following little code should error out, but it doesn't:

program kill1
  call kill((/99999, 99998/), (/0, 0/))
end

If I'm correct in claiming this as a bug, it can be fixed by putting checks in
check.c: gfc_check_kill_sub.


-- 
           Summary: kill suboutine accepts (invalid) array arguments.
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: brooks at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list