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/16400] New: Invalid usage of assumed-size arrays is not rejected


The following code should trigger an error message (currently
accepted).

subroutine foo(s)
  integer s(*)
  s = 1 
  print*, s
end

The 2003 Standard says in 5.1.2.5.4: "...An assumed-size
array name shall not be written as a whole array reference
except as an actual argument in a procedure reference for which
the shape is not required."

-- 
           Summary: Invalid usage of assumed-size arrays is not rejected
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lei at il dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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