Internal error: variable.cpp

Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
Post Reply
pjc30943
Posts: 220
Joined: 01 December 2005, 18:45 PM

Internal error: variable.cpp

Post by pjc30943 »

An odd occurrence which might be of interest:
In a section of code in another module, I declared a constant with a *variable* in its argument, which was only set a few lines later.
Somehow, the code compiled when a few types of specific commands (such as sleep 0.0) were in Main(). This shouldn't have compiled in the first place.
Removing these seemingly unrelated commands caused the following error:

Internal error: variable.cpp(9833), Rev 1203: missing constant value, "...

So, somehow the compiler got it right in a few cases, and in the other instances those constants were presumably set to some unknown (or random) value.
Paul
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Internal error: variable.cpp

Post by dkinzer »

pjc30943 wrote:This shouldn't have compiled in the first place.
Assuming that I understood your description (a small test case that demonstrates the issue is the best way to unequivocally describe a problem), you are correct. We were able to replicate the problem and have resolved it.

Thanks.
- Don Kinzer
pjc30943
Posts: 220
Joined: 01 December 2005, 18:45 PM

Post by pjc30943 »

Okay.
[I didn't give a test case: several things were altered to correct the error, and I was unable to backtrack successfully to reproduce it later in the day when posting.]
Paul
Post Reply