https://bugs.winehq.org/show_bug.cgi?id=53877
Bug ID: 53877 Summary: vbscript compile_assignment assertion when assigning multidimensional array by indices Product: Wine Version: 7.20 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: jsm174@gmail.com Distribution: ---
The following works in real vbscript:
Dim x Redim x(10) x(1) = Array(5, 6, 7)
WScript.echo x(1)(0) WScript.echo x(1)(2)
x(1)(0) = x(1)(2)
WScript.echo x(1)(0)
Output:
5 7 7
When running through Wine vbscript an assertion happens when processing
x(1)(0) = x(1)(2)
case EXPR_CALL: call_expr = (call_expression_t*)left; assert(call_expr->call_expr->type == EXPR_MEMBER);
Stepping through the debugger, call_expr->call_expr->type appears to be EXPR_CALL