[fa.info-vax] Possible VAX/VMS PL/I Bug involving return values?

info-vax@ucbvax.ARPA (02/12/85)

From: Jerry Bakin <Bakin@HI-MULTICS.ARPA>

I compiled the following PL/I program under VAX/VMS, and an identical
one under Multics (except quotes for apostrophes).  The VMS compiler
yielded the results below.  The Multics compiler compiled code which,
when executed, gave the "obvious" results.

This seems to be a VMS compiler bug, but could it be a PL/I subset G
versus complete PL/I issue?

    1               test_0: procedure returns (bit (1));
    2    1           
    3    1          return ('0'b);
 %W, Implicit conversion of the return value,
                    a constant '0'B, to the function type
                    CHARACTER.
    4    1           
    5    1          test_1: entry returns (char (1));
    6    1           
    7    1          return ('0');
 %W, Implicit conversion of the return value,
                    a constant '0' to the function type
                    BIT.
    8    1          end;

I think these error messages are great!

Jerry Bakin <Bakin@HI-Multics>