------- 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

Reply via email to