已关闭
[Bug]: [BCOPT] failed to initialize acc before call #9414
znhy创建于 1月28日关闭于 3月18日
1月28日 添加了label:bug
openharmony_ci
1月28日 评论:
1月28日 评论:
感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 [@weng-changcheng](https://gitcode.com/weng-changcheng) [@godmiaozi](https://gitcode.com/godmiaozi) [@liyiming13](https://gitcode.com/liyiming13) [@lijin1039](https://gitcode.com/lijin1039) [@Prof](https://gitcode.com/Prof) [@dingding5](https://gitcode.com/dingding5) [@v-cherkashin](https://gitcode.com/v-cherkashin) 。如果需要调整订阅PR、Issue的变更状态,请访问链接。
Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer gitcode for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.


1月28日 添加了label:waiting_for_assign
1月28日 关联了pull request:Fix bcopt to initialize acc before call
3月18日 issue状态由 待办的 改变为 已完成
3月18日 关闭了 issue
感谢对OpenHarmony社区的支持与关注,欢迎反馈缺陷。
发生了什么问题?
`function getNext(exprList: Int[], index: Int) {
return index + 1;
}
function buildSubExpr(exprList: Int[]) {
for (let index = 0; (index = getNext(exprList, index)) < exprList.length; index++) {
exprList.splice(index, 1);
}
}
let exprList = [1,2,3,4,5]
buildSubExpr(exprList)`
[TID 002825] E/verifier: Method verification failed: void tmpwxfjk8q_.ETSGLOBAL::buildSubExpr(std.core.Array)
[TID 002825] E/verifier: Class verification failed: 'tmpwxfjk8q_.ETSGLOBAL' method: void tmpwxfjk8q_.ETSGLOBAL::buildSubExpr(std.core.Array)
[TID 002825] E/runtime: Cannot initialize class 'tmpwxfjk8q_.ETSGLOBAL'
期望行为是什么?
no error
如何复现该缺陷
./bin/es2panda --opt-level=2 /home/syc/myProjects/stand_alone_master/code/syc/0127/test.ets --output /home/syc/myProjects/stand_alone_master/code/syc/0127/test.abc
./bin/verifier --load-runtimes ets --boot-panda-files /home/syc/myProjects/stand_alone_master/code/arkcompiler/runtime_core/static_core/out/plugins/ets/etsstdlib.abc /home/syc/myProjects/stand_alone_master/code/syc/0127/test.abc
其他补充信息
版本或分支信息
[x] master
[ ] Release 6.0
[ ] Release 5.1.0
[ ] Release 5.0.3
[ ] Release 4.1
[ ] Other