public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/21565] New: namelist in block data is illegal
@ 2005-05-14  8:50 tkoenig at gcc dot gnu dot org
  2005-05-19 16:25 ` [Bug fortran/21565] " tobi at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-05-14  8:50 UTC (permalink / raw)
  To: gcc-bugs

gfortran falsely accepts a namelist in a block
data:

$ cat block_d.f
      block data
      common /foo/ a
      namelist /foo_n/ a
      data a /1.0/
      end
$ gfortran -S block_d.f
$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1/configure --prefix=/home/ig25 --enable-languages=c,f95
Thread model: posix
gcc version 4.1.0 20050508 (experimental)

g77 correctly rejects it, although with a confusing error message:

$ g77 -S block_d.f
block_d.f: In block-data unit `_BLOCK_DATA__':
block_d.f:2:
         common /foo/ a
         1
block_d.f:3: (continued):
         namelist /foo_n/ a
         2
Statement at (2) invalid in context established by statement at (1)

-- 
           Summary: namelist in block data is illegal
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid, diagnostic
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-05-19 16:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-14  8:50 [Bug fortran/21565] New: namelist in block data is illegal tkoenig at gcc dot gnu dot org
2005-05-19 16:25 ` [Bug fortran/21565] " tobi 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).