This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30481] New: Accepts namelist-group object with assumed character length
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2007 09:29:14 -0000
- Subject: [Bug fortran/30481] New: Accepts namelist-group object with assumed character length
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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