Found at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/75b797b2d4257f74
subroutine foo(c)
character*(*) c
namelist /abc/ c
end subroutine
is accepted by gfortran. Other compilers give the correct error:
fortcom: Error: aaa.f, line 3: A namelist-group-object must not be a variable
with assumed character length (R544.1). [ERRMSG]
Error: bbb.f90, line 4: Namelist-group-object C has assumed character length
Error: Variable 'c' at (1) cannot have a variable length and be in a NAMELIST
ERROR: "C" has the CHARACTER*(*) attribute, therefore it must not be declared
as a namelist-group-object.
--
Summary: Accepts namelist-group object with assumed character
length
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30481