(j3.2006) What is the point of 5.4.7p2?

Van Snyder Van.Snyder
Thu Jul 18 14:13:45 EDT 2013


What is the point of 5.4.7p2?

"If a nonpointer object has default initialization, it shall not appear
in a data-stmt-object -list."

So if I have a type T that has default initialization, I can write

  type(t) :: X = t(42)

but not

  type(t) :: X
  data x / t(42) /

Can we either delete this prohibition (which is also mentioned in
5.2.3p1), or make it a constraint?  One of my processors was perfectly
happy to ignore it, which militated against portability.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.j3-fortran.org/pipermail/j3/attachments/20130718/85b367df/attachment.html 



More information about the J3 mailing list