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 run parse.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: 188d68d
/tmp/v_1000/parse.01JSAVZJHW9P91J5Z3X49ZET2Q.tmp.c:15497: at _v_panic: Backtrace
/tmp/v_1000/parse.01JSAVZJHW9P91J5Z3X49ZET2Q.tmp.c:25299: by v__ast__default_table_panic_handler
/tmp/v_1000/parse.01JSAVZJHW9P91J5Z3X49ZET2Q.tmp.c:25305: by v__ast__Table_panic
/tmp/v_1000/parse.01JSAVZJHW9P91J5Z3X49ZET2Q.tmp.c:25424: by v__ast__Table_sym
/tmp/v_1000/parse.01JSAVZJHW9P91J5Z3X49ZET2Q.tmp.c:41489: by v__parser__Parser_struct_decl
/tmp/v_1000/parse.01JSAVZJHW9P91J5Z3X49ZET2Q.tmp.c:37633: by v__parser__Parser_top_stmt
/tmp/v_1000/parse.01JSAVZJHW9P91J5Z3X49ZET2Q.tmp.c:37239: by v__parser__Parser_parse
/tmp/v_1000/parse.01JSAVZJHW9P91J5Z3X49ZET2Q.tmp.c:37202: by v__parser__parse_file
/tmp/v_1000/parse.01JSAVZJHW9P91J5Z3X49ZET2Q.tmp.c:42629: by main__main
/tmp/v_1000/parse.01JSAVZJHW9P91J5Z3X49ZET2Q.tmp.c:43065: by main
Possible Solution
No response
Additional Information/Context
parse.v is extracted from vlib/v/parser/v_parser_test.v parse_bug.v is extracted from some project files translated by c2v.
Describe the bug
when use
v.parserparse a file, which has struct withc.xxfields name, it will crashReproduction Steps
parse.v
parse_bug.v
Expected Behavior
It should not crash
Current Behavior
Possible Solution
No response
Additional Information/Context
parse.vis extracted fromvlib/v/parser/v_parser_test.vparse_bug.vis extracted from some project files translated byc2v.V version
V 0.4.10 188d68d.188d68d
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.