Undefined ident: b
when using mut b := ''
after cond := node in [aa.S1, aa.S2]
#19413
Labels
Bug
This tag is applied to issues which reports bugs.
Describe the bug
Undefined ident:
b
when usingmut b := ''
aftercond := node in [aa.S1, aa.S2]
This is a reproducible example, what actually went wrong was assign_stmt() in gen/c/assign.v.
If using
node.left[0] in [ast.Ident, ast.SelectorExpr]
instead of(node.left[0] is ast.Ident || node.left[0] is ast.SelectorExpr)
This will result in a compilation error.
Reproduction Steps
aa/aa.v
tt1.v
Expected Behavior
output:
Current Behavior
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.1 ed42341
Environment details (OS name and version, etc.)
V full version: V 0.4.1 ed42341
OS: windows, Microsoft Windows 11 Home China v22621 64-bit
Processor: 16 cpus, 64bit, little endian,
getwd: D:\Vlang\v
vexe: D:\Vlang\v\v.exe
vexe mtime: 2023-09-22 13:09:55
vroot: OK, value: D:\Vlang\v
VMODULES: OK, value: C:\Users\yuyi9.vmodules
VTMP: OK, value: C:\Users\yuyi9\AppData\Local\Temp\v_0
Git version: git version 2.37.3.windows.1
Git vroot status: weekly.2023.38-22-ged423416
.git/config present: true
CC version: Error: 'cc' is not recognized as an internal or external command,
operable program or batch file.
thirdparty/tcc status: thirdparty-windows-amd64 e90c2620
Important
You can vote for this issue using the 👍 reaction. More votes increase the issue's priority
for developers.
Take into account that only the 👍 reaction counts as a vote.
Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered: