This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31818] Wrongly accepts namelists with assumed-sized arrays
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 May 2007 08:53:20 -0000
- Subject: [Bug fortran/31818] Wrongly accepts namelists with assumed-sized arrays
- References: <bug-31818-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pault at gcc dot gnu dot org 2007-05-05 09:53 -------
(In reply to comment #0)
> subroutine test(cha)
> implicit none
> character(len=10) :: cha(:)
> namelist /z/ cha
> end subroutine test
>
> See also:
> gfortran.dg/namelist_14.f90
>
> This is invalid:
> "5.4 NAMELIST statement"
> "C574 (R553) A namelist-group-object shall not be an assumed-size array."
Tobius,
That's an assumed shape array:) However,
Constraint:A namelist-group-object shall not be an array dummy argument with a
nonconstant bound, a variable with nonconstant character length, an automatic
object, a pointer, a variable of a type that has an ultimate component that is
a pointer, or an allocatable array.
Hence the error messages of the other products.
I have to confess that I thought that we had fixed this but, apparently, I was
wrong.
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-05-05 09:53:20
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31818