public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/16400] New: Invalid usage of assumed-size arrays is not rejected
@ 2004-07-07  6:51 lei at il dot ibm dot com
  2004-07-07 15:54 ` [Bug fortran/16400] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: lei at il dot ibm dot com @ 2004-07-07  6:51 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-09-01 21:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-07  6:51 [Bug fortran/16400] New: Invalid usage of assumed-size arrays is not rejected lei at il dot ibm dot com
2004-07-07 15:54 ` [Bug fortran/16400] " pinskia at gcc dot gnu dot org
2004-07-07 15:54 ` pinskia at gcc dot gnu dot org
2004-07-11 14:58 ` tobi at gcc dot gnu dot org
2004-07-12  6:55 ` lei at il dot ibm dot com
2004-09-01 21:07 ` cvs-commit at gcc dot gnu dot org
2004-09-01 21:08 ` tobi at gcc dot gnu dot org
2004-09-01 21:09 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).