Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parser-decl-var: Fix crash after Redim array expression parsing fails
- Loading branch information
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
' TEST_MODE : COMPILE_ONLY_FAIL | ||
|
||
'' It looks like a REDIM with an expression to fbc (since there's a | ||
'' keyword/identifier that's not followed by a '(' that would indicate the | ||
'' array dimension list), but the expression parser will fail, since it's an | ||
'' invalid expression, and the REDIM parser should handle that. | ||
redim print foo |