[J3] Is this standard-conforming?

Steve Lionel steve at stevelionel.com
Thu Jul 26 09:24:36 EDT 2018


On 7/26/2018 6:12 AM, Damian Rouson via J3 wrote:
> One processor accepts the code below.  Three others generate error 
> messages related to the binding label c_name and either report a 
> syntax error or report that the binding label is a variable that does 
> not reduce to a constant expression. 

It is clear to me that this is standard-conforming. The binding label is 
required to be a default-char-constant-expression, and c_name, visible 
in the interface block through the import, is exactly that. If there is 
some additional restriction on the NAME= value that prohibits this, I 
can't find it.

As a former developer, though, I can understand how this sort of thing 
happens.

Steve



More information about the J3 mailing list