------- Comment #2 from burnus at gcc dot gnu dot org  2007-11-27 22:16 -------
(In reply to comment #1)
> But a character string is not an array. The len parameter is a type parameter.
> That part of the standard does not apply. It's legal.

I don't worry about "len=3", I'm worrying about the type:

  data emname/'bar'/

is implicitly types REAL and then one line later comes:

  character(len=3) :: emname

I still think that this violates: "A variable that appears in a DATA statement
and has not been typed previously may appear in a subsequent type declaration
only if that declaration confirms the implicit typing."


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34228

Reply via email to