Waldek Hebisch wrote:
The grammar in the standard (as noted in other posts) do not accept packed on subranges, so program containing such constuct is non-conformat. Of course accepting packed on subranges is a valid extension, but any compiler with grammar taken from standard will recect it. In fact, I think that in strict ISO mode (--pedantic ??) gpc should reject non-conformat programs, so also packed on subranges.
And that's what it does (with any dialect switch except `--gnu-pascal', and with `--pedantic').
Frank