Page 1 of 1

VSI Pascal x86-64 V6.3-143 (GEM 50XC4) G2L converter bug

Posted: Wed Jan 31, 2024 7:54 am
by martinv
Hi!

Just a note...

I have observed in a big Pascal-based project that the compiler emits a G2L error

Code: Select all

G2L-E-ASSERT, G2L converter bug in [.src]g2l_debug.cxx at line 710
initial source loactor was invalid
if a MODULE only contains CONST and TYPE declarations (in our project this is used extensively to generate PEN files).
To remedy this, insert a dummy

Code: Select all

TO BEGIN DO ;
and the error is gone.

Re: VSI Pascal x86-64 V6.3-143 (GEM 50XC4) G2L converter bug

Posted: Wed Jan 31, 2024 9:32 am
by jreagan
Works for me

Code: Select all

$ create m.pas
module test;
const c = 1;
type t = array [1..1] of integer;
end.
 Exit
$ pascal m
$ pascal/debug m
%PASCAL-I-DEBUGOPT, /NOOPTIMIZE is recommended with /DEBUG
$ pascal/debug/environment m
%PASCAL-I-DEBUGOPT, /NOOPTIMIZE is recommended with /DEBUG
$ pascal/version
VSI Pascal x86-64 V6.3-143 (GEM 50XC4) on OpenVMS x86_64 V9.2-2

Re: VSI Pascal x86-64 V6.3-143 (GEM 50XC4) G2L converter bug

Posted: Wed Jan 31, 2024 10:21 am
by martinv
John,

thanks for checking. I just described my observations. I'll have to dig deeper into what's causing it with our modules..

Re: VSI Pascal x86-64 V6.3-143 (GEM 50XC4) G2L converter bug

Posted: Wed Jan 31, 2024 10:32 am
by jreagan
I looked and we did have such a failure earlier in the FT but I thought we fixed them all. Perhaps we missed an edge case? If you can find a reproducer, enter a support ticket if you can and we'll get it sorted.