This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/53544] Derived-type components in namelist group declaration produces error
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 May 2012 20:27:26 +0000
- Subject: [Bug fortran/53544] Derived-type components in namelist group declaration produces error
- Auto-submitted: auto-generated
- References: <bug-53544-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53544
--- Comment #2 from Harald Anlauf <anlauf at gmx dot de> 2012-05-31 20:27:26 UTC ---
(In reply to comment #0)
> It is my understanding that the variables in a namelist group declaration must
> not be a dummy array with non-constant bound, a variable with non-constant
> character length, an automatic object, an allocatable array, a pointer, or have
> a component at any depth that is a pointer or is inaccessible. The case in the
> example program falls into none of these categories, and therefore should be
> accepted by the compiler as valid code.
>From the F2008 draft standard:
R564 namelist-group-object is variable-name
R603 variable-name is name
C603 (R603) variable-name shall be the name of a variable.
I think that ct%a is a structure component and does not
qualify as the name of a variable.