Internal Compiler Error

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
mikep
Posts: 796
Joined: 24 September 2005, 15:54 PM

Internal Compiler Error

Post by mikep »

The following (illegal) code:

Code: Select all

Private Const TEST_CHAR as Byte = CByte("u")
Sub Main()
	Debug.Print CStr(TEST_CHAR)
End Sub
produces the following internal compiler error:

Code: Select all

Internal error: variable.cpp(9663), Rev 1127: missing constant value, "Test.bas" line 1
Mike Perks
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Internal Compiler Error

Post by dkinzer »

mikep wrote:The following (illegal) code:
Well, it's not really illegal, although perhaps nonsensical. The function should return zero if the supplied string doesn't contain suitable characters.

Thanks for pointing this out. We've found the cause of the problem and identified a solution that appears to produce a suitable result.
- Don Kinzer
Post Reply