public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/38917]  New: Can't use DATA to initialize pointer to array to NULL()
@ 2009-01-19 22:03 dick dot hendrickson at gmail dot com
  2009-01-20  7:25 ` [Bug fortran/38917] " burnus at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dick dot hendrickson at gmail dot com @ 2009-01-19 22:03 UTC (permalink / raw)
  To: gcc-bugs

The following program gives error messages for using DATA to iniialize pointers
to arrays to NULL()

Dick Hendrickson

      SUBROUTINE PF0005

! fails on Windows XP
! gcc version 4.4.0 20081219 (experimental) [trunk revision 142842] (GCC)

      REAL, SAVE, POINTER :: PTR1
      INTEGER, POINTER       :: PTR2(:,:,:)
      CHARACTER(LEN=1), SAVE, POINTER :: PTR3(:)

      DATA  PTR1 / NULL() /
      DATA  PTR2 / NULL() /
      DATA  PTR3 / NULL() /

      end subroutine pf0005


C:\documents and settings\s and h\my documents\g_experiments\gfortran>gfortran
t
ry_pf0005.f
try_pf0005.f:12.10:

      DATA  PTR3 / NULL() /
          1
Error: Nonconstant array section at (1) in DATA statement
try_pf0005.f:11.10:

      DATA  PTR2 / NULL() /
          1
Error: Nonconstant array section at (1) in DATA statement


-- 
           Summary: Can't use DATA to initialize pointer to array to NULL()
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dick dot hendrickson at gmail dot com


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


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

end of thread, other threads:[~2009-04-06 10:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-19 22:03 [Bug fortran/38917] New: Can't use DATA to initialize pointer to array to NULL() dick dot hendrickson at gmail dot com
2009-01-20  7:25 ` [Bug fortran/38917] " burnus at gcc dot gnu dot org
2009-01-22 20:17 ` pault at gcc dot gnu dot org
2009-01-24 12:54 ` [Bug fortran/38917] [Fix pending] " pault at gcc dot gnu dot org
2009-03-31 20:06 ` [Bug fortran/38917] " pault at gcc dot gnu dot org
2009-04-06 10:54 ` pault 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).