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