Actions
Bug #558
closedHaving a Label as the first line of a procedure causes an internal error at compilation Pass 2
Start date:
10/28/2020
Due date:
% Done:
0%
Estimated time:
Affected version:
Description
Having a Label as the first line of a procedure causes an internal error at compilation Pass 2
This is a recent bug, it used to be ok, not sure which version it first occurred.
Updated by Brian Flanagan about 4 years ago
Verified. This also fails in RC4, but in pass 1.
Example:
DoStuff
Procedure DoStuff[what]
barf:
Print "barf"
End Procedure
Result:
Error: internal error at line 4, column 5, in file main.aoz
Compiler error: crash during compilation: Pass: 1, crash at line 3, column: 5!
Cannot set property 'labelBlock' of undefined
TypeError: Cannot set property 'labelBlock' of undefined at firstPass (...compiler.js:1550:24) at compileSection
(...compiler.js:727:4) at Object.module.exports.compile
(...compiler.js:84:2) at compile
(...aoz.js:1176:23) at aoz
(...aoz.js:1012:9) at Object.transpile
(...aoz.js:218:4) at AOZView.buildPath
(...aoz-studio-view.js:1772:9) at transpileIt
(...aoz-studio-view.js:1607:12) at ...aoz-studio-view.js:1599:7
Updated by Francois Lionet about 4 years ago
- Status changed from New to Resolved
- Target version set to Beta 1
Fixed! Was also happening for instructions, functions and methods.
Updated by David Baldwin about 4 years ago
- Status changed from Resolved to Closed
Actions