Wrong results triggered by dead code #23274
Labels
Bug
This tag is applied to issues which reports bugs.
Generics[T]
Bugs/feature requests, that are related to the V generics.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Describe the bug
Adding some unused code changes the result of "magnitude()".
Reproduction Steps
Expected Behavior
0.8660254
2.598076
Current Behavior
0.0
2.449490
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.9 7eec8b1
Environment details (OS name and version, etc.)
https://play.vlang.io/p/f1b6730843
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.
Huly®: V_0.6-21708
The text was updated successfully, but these errors were encountered: