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
It should work the same way it does when not compile time.
Current Behavior
D:/temp/v_0/iffy.4792796928068636788.tmp.c:501: warning: WINVER redefined
D:/temp/v_0/../../../../../..C:\cvs\v\vlib\builtin\builtin.c.v:68: warning: implicit declaration of function 'tcc_backtrace'
D:/temp/v_0/../../../../../..C:\cvs\v\vlib\builtin\builtin_windows.c.v:288: warning: assignment from incompatible pointer type
D:/temp/v_0/../../../../../..C:\cvs\v\vlib\builtin\builtin_windows.c.v:288: warning: assignment makes pointer from integer without a cast
D:/temp/v_0/../../../../../..C:\cvs\v\vlib\builtin\builtin_windows.c.v:288: warning: cast between pointer and integer of different size
D:/temp/v_0/../../../../../..D:\Dropbox\cvs\gravscriptv\iffy.v:17: error: declaration of an array of incomplete type elements
builder error:
==================
C error. This should never happen.
This is a compiler bug, please report it using `v bug file.v`.
https://github.com/vlang/v/issues/new/choose
Reproduction Steps
v run iffy.v
Possible Solution
No response
Additional Information/Context
split_once() default behavior of returning 2 empty strings if the separator doesn't exist isn't useful behavior to me here, so I'm using the if to override the behavior. When reducing the code to a minimal reproducable example, the error went away when I eliminated the compile-time loop.
Describe the bug
Getting "This is a compiler bug, please report it" from the following code:
Expected Behavior
It should work the same way it does when not compile time.
Current Behavior
Reproduction Steps
v run iffy.v
Possible Solution
No response
Additional Information/Context
split_once() default behavior of returning 2 empty strings if the separator doesn't exist isn't useful behavior to me here, so I'm using the if to override the behavior. When reducing the code to a minimal reproducable example, the error went away when I eliminated the compile-time loop.
V version
V 0.3.4 dd24e8a
Environment details (OS name and version, etc.)
The text was updated successfully, but these errors were encountered: