This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48048] [F2003] Remove constraint on namelist group objects
- From: "w6ws at earthlink dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 9 Mar 2011 23:17:28 +0000
- Subject: [Bug fortran/48048] [F2003] Remove constraint on namelist group objects
- Auto-submitted: auto-generated
- References: <bug-48048-4@http.gcc.gnu.org/bugzilla/>
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.