(j3.2006) Did we intend to prevent this?

Van Snyder Van.Snyder
Tue Nov 8 22:06:37 EST 2011


Consider

  type T
    character(len=:), pointer :: P
  end type T

  character(len=42), target :: C2 = 'The value of C2'
  character(len=24), target :: C3 = 'The value of C3'

  type(t), parameter :: Z(2) = (/ t(c2), t(c3) /)

This appears to be prohibited because c2 and c3 are not initialization
expressions.  They would, however, be perfectly good
<initial-data-target>s.

Did we intend to prevent this?





More information about the J3 mailing list