public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31818]  New: Wrongly accepts namelists with assumed-sized arrays
@ 2007-05-04 16:52 burnus at gcc dot gnu dot org
  2007-05-05  8:53 ` [Bug fortran/31818] " pault at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-05-04 16:52 UTC (permalink / raw)
  To: gcc-bugs

subroutine test(cha)
  implicit none
  character(len=10) :: cha(:)
  namelist /z/  cha
end subroutine test

See also:
  gfortran.dg/namelist_14.f90

This is invalid:
"5.4 NAMELIST statement"
"C574 (R553) A namelist-group-object shall not be an assumed-size array."

Other compilers reject this:

ifort:  A NAMELIST group object must not be an array with nonconstant bounds.
[CHA]
g95:  Variable 'cha' at (1) must have an explicit shape to be in a NAMELIST
NAG f95: Namelist-group-object CHA is an array dummy with non-constant bounds


-- 
           Summary: Wrongly accepts namelists with assumed-sized arrays
           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: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-07-28  8:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-04 16:52 [Bug fortran/31818] New: Wrongly accepts namelists with assumed-sized arrays burnus at gcc dot gnu dot org
2007-05-05  8:53 ` [Bug fortran/31818] " pault at gcc dot gnu dot org
2007-07-24 13:49 ` burnus at gcc dot gnu dot org
2007-07-25 22:09 ` dfranke at gcc dot gnu dot org
2007-07-26 22:16 ` [Bug fortran/31818] Wrongly accepts namelists with assumed-shape arrays dfranke at gcc dot gnu dot org
2007-07-27 20:27 ` dfranke at gcc dot gnu dot org
2007-07-28  8:51 ` dfranke at gcc dot gnu dot org
2007-07-28  8:52 ` dfranke 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).