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 version:V 0.5.2 (master) OS: Linux (reported via bugs.vlang.io)
Description
An or {} block whose body is a compile-time $if / $else emits an undeclared result temp: the branch bodies assign to and reference _t3, but _t3 is never declared, so the generated C fails with use of undeclared identifier '_t3'.
V version:
V 0.5.2(master)OS: Linux (reported via bugs.vlang.io)
Description
An
or {}block whose body is a compile-time$if / $elseemits an undeclared result temp: the branch bodies assign to and reference_t3, but_t3is never declared, so the generated C fails withuse of undeclared identifier '_t3'.Reproduction
Actual (generated C fails to compile)
The
or {}result temp_t3is used in the$if/$elsebranch bodies but never declared.Expected
Compiles; the
or {}block's result temp is declared for the comptime-$ifbody.Reported via bugs.vlang.io (also seen inside a larger real program)
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.