VALUE Section Not Allowed with $ROM

Product Version(s): 3.3x
Operating System:   MS-DOS
Flags: ENDUSER | TAR21824 docerr
Last Modified: 26-SEP-1988    ArticleIdent: Q10862

Pages 317 and 318 of the Pascal Reference Manual incorrectly state
that using the $ROM metacommand in conjunction with the VALUE section
results in a compiler warning; however, the metacommand, actually
gives error message 347, "Cannot Use Value Section with ROM Memory."

The manual should state that when you have a VALUE section in a
program using the {$ROM+} metacommand, you will receive an error
message.

The following sample code demonstrates the problem:

{$rom+}
program xx;
VAR   I :  integer;
VALUE I := 1;
begin
end.
