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 s.v
/tmp/v_1000/s.01KCKPNE88WDSFWRV83PRMRQ0Q.tmp.c:2891: at indent_main__Foo_str: RUNTIME ERROR: invalid memory access
/tmp/v_1000/s.01KCKPNE88WDSFWRV83PRMRQ0Q.tmp.c:2884: by main__Foo_str
/tmp/v_1000/s.01KCKPNE88WDSFWRV83PRMRQ0Q.tmp.c:2911: by _v_dump_expr_main__Foo
/tmp/v_1000/s.01KCKPNE88WDSFWRV83PRMRQ0Q.tmp.c:8874: by main__main
/tmp/v_1000/s.01KCKPNE88WDSFWRV83PRMRQ0Q.tmp.c:8964: by main
Describe the bug
try to assign a default value to a shared int field in a struct, will cause runtime error.
Reproduction Steps
s.v
Expected Behavior
output x.a == 200
Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.12 967a4a2.c445b0c
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.