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 match.v
V panic: table.sym: invalid type (typ=ast.Type(0x0 = 0) idx=0). Compiler bug. This should never happen. Please report the bug using `v bug file.v`.
v hash: fd31771
pid: 0x3ce22
tid: 0x3ce22
/tmp/v_1000/v2.tmp.c:21745: at builtin___v_panic: Backtrace
/tmp/v_1000/v2.tmp.c:37908: by v__ast__default_table_panic_handler
/tmp/v_1000/v2.tmp.c:37914: by v__ast__Table_panic
/tmp/v_1000/v2.tmp.c:38616: by v__ast__Table_sym
/tmp/v_1000/v2.tmp.c:5954: by v__checker__Checker_match_expr
/tmp/v_1000/v2.tmp.c:56723: by v__checker__Checker_expr
/tmp/v_1000/v2.tmp.c:50308: by v__checker__Checker_assign_stmt
/tmp/v_1000/v2.tmp.c:55442: by v__checker__Checker_stmt
/tmp/v_1000/v2.tmp.c:56078: by v__checker__Checker_stmts_ending_with_expression
/tmp/v_1000/v2.tmp.c:56055: by v__checker__Checker_stmts
/tmp/v_1000/v2.tmp.c:64893: by v__checker__Checker_fn_decl
/tmp/v_1000/v2.tmp.c:1761: by v__checker__Checker_post_process_generic_fns
/tmp/v_1000/v2.tmp.c:53491: by v__checker__Checker_check_files
/tmp/v_1000/v2.tmp.c:56777: by v__builder__Builder_middle_stages
/tmp/v_1000/v2.tmp.c:56818: by v__builder__Builder_front_and_middle_stages
/tmp/v_1000/v2.tmp.c:59342: by v__builder__cbuilder__gen_c
/tmp/v_1000/v2.tmp.c:59314: by v__builder__cbuilder__build_c
/tmp/v_1000/v2.tmp.c:59305: by v__builder__cbuilder__compile_c
/tmp/v_1000/v2.tmp.c:59222: by v__builder__Builder_rebuild
/tmp/v_1000/v2.tmp.c:58368: by v__builder__compile
/tmp/v_1000/v2.tmp.c:59734: by main__rebuild
/tmp/v_1000/v2.tmp.c:59686: by main__main
/tmp/v_1000/v2.tmp.c:60702: by main
Describe the bug
Assignment with
$matchwill cause compiler panic.Reproduction Steps
match.v
Expected Behavior
compile ok or report error/warnings
Current Behavior
Possible Solution
fix checker
Additional Information/Context
No response
V version
V 0.4.12 1cdb0f5.fd31771
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.