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

OpenVMS x86 native compilers, cross compilers news and questions.
Post Reply
User avatar

Topic author
martinv
Master
Posts: 145
Joined: Fri Jun 14, 2019 11:05 pm
Reputation: 0
Location: Goslar, Germany
Status: Offline
Contact:

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

Post by martinv » Wed Jan 31, 2024 7:54 am

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.
Last edited by martinv on Wed Jan 31, 2024 7:57 am, edited 1 time in total.
Never believe that a few caring people can't change the world. For, indeed, that's all who ever have.
(Margaret Mead)


jreagan
VSI Expert
Master
Posts: 215
Joined: Tue Dec 01, 2020 8:40 am
Reputation: 0
Status: Offline

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

Post by jreagan » Wed Jan 31, 2024 9:32 am

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

User avatar

Topic author
martinv
Master
Posts: 145
Joined: Fri Jun 14, 2019 11:05 pm
Reputation: 0
Location: Goslar, Germany
Status: Offline
Contact:

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

Post by martinv » Wed Jan 31, 2024 10:21 am

John,

thanks for checking. I just described my observations. I'll have to dig deeper into what's causing it with our modules..
Never believe that a few caring people can't change the world. For, indeed, that's all who ever have.
(Margaret Mead)


jreagan
VSI Expert
Master
Posts: 215
Joined: Tue Dec 01, 2020 8:40 am
Reputation: 0
Status: Offline

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

Post by jreagan » Wed Jan 31, 2024 10:32 am

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.

Post Reply