You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ v crash.v
V panic: array.get: index out of range (i,a.len):0, 0
v hash: 50b716b
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:19371: at _v_panic: Backtrace
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:19419: by panic_n2
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:18925: by array_get
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:17399: by v__gen__c__Gen_array_init
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:27770: by v__gen__c__Gen_expr
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:28154: by v__gen__c__Gen_expr
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:20987: by v__gen__c__Gen_assign_stmt
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:26582: by v__gen__c__Gen_stmt
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:26380: by v__gen__c__Gen_stmts_with_tmp_var
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:26228: by v__gen__c__Gen_stmts
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:34110: by v__gen__c__Gen_comptime_if
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:27894: by v__gen__c__Gen_expr
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:26609: by v__gen__c__Gen_stmt
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:26380: by v__gen__c__Gen_stmts_with_tmp_var
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:26228: by v__gen__c__Gen_stmts
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:36876: by v__gen__c__Gen_gen_fn_decl
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:36500: by v__gen__c__Gen_gen_fn_decl
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:36407: by v__gen__c__Gen_fn_decl
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:26568: by v__gen__c__Gen_stmt
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:26380: by v__gen__c__Gen_stmts_with_tmp_var
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:26228: by v__gen__c__Gen_stmts
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:25079: by v__gen__c__Gen_gen_file
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:25016: by v__gen__c__cgen_process_one_file_cb
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:33136: by sync__pool__process_in_thread
/tmp/v_1000/v2.01JNZ04TMETS8NWZB8CCRK9D1B.tmp.c:15797: by sync__pool__process_in_thread_thread_wrapper
Describe the bug
v compiler crash when compile generic array code
Reproduction Steps
crash.v
Expected Behavior
compile ok or report error
Current Behavior
compiler crash:
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.9 ab2eb00.50b716b
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.