Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Comptime fatal error

Open disarray2077 opened this issue 1 year ago • 2 comments

Introducing a new variable in Span<T> causes a fatal error during comptime evaluation:

---------------------------
FATAL ERROR
---------------------------
FATAL ERROR
Fatal Error in Module: __constEval
Function: ?Init@COMPTIME$?$SplitList@U_T0@@@Collections@System@bf@@CAXXZ
DbgLoc: @3 SplitList.bf:38:12
Malformed structure values in D:\BeefLang\Repository\Beef\IDEHelper\Backend\BeIRCodeGen.cpp:317

image

Tested with: https://github.com/beefytech/Beef/commit/ab31e5bc89a0c4304d9716f9cb09614583ab5c3e

disarray2077 avatar Apr 27 '24 19:04 disarray2077

Ah, yeah. It will definitely still be illegal, but I'll try to make the errors softer.

bfiete avatar Apr 27 '24 19:04 bfiete