[Bug fortran/48048] [F2003] Remove constraint on namelist group objects

w6ws at earthlink dot net gcc-bugzilla@gcc.gnu.org
Wed Mar 9 23:17:00 GMT 2011


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

--- Comment #3 from Walter Spector <w6ws at earthlink dot net> 2011-03-09 23:17:20 UTC ---
I updated my copy of the trunk, and rebuilt 4.6.  Non-derived type
allocatable/pointer variables seem to be ok.  However allocatable/pointer
derived type components are not supported.  This appears to be because DTIO is
then required and gfortran does not support it yet.

testnml.f90:55.19:

  namelist /mygroup/ iarray, a, da
                   1
Error: NAMELIST object 'da' in namelist 'mygroup' at (1) has ALLOCATABLE or
POINTER components and thus requires a defined input/output procedure
testnml.f90:66.13:

  print *, da
             1
Error: Data transfer element at (1) cannot have POINTER components

Off topic, but note that the error message for the 'print' statement in my
little test program could be more helpful.  It could give a message similar to
the one provided at the namelist statement.



More information about the Gcc-bugs mailing list