Christoffer Lerno
5b90743120
Fix test compatibility
2026-01-25 13:15:26 +01:00
Christoffer Lerno
0fb91265b6
- Bug when initializing an inferred array with deep structure using designated init #2826
2026-01-25 13:13:59 +01:00
Christoffer Lerno
3cb7c489ee
Updated releasenotes
2026-01-25 12:50:02 +01:00
Christoffer Lerno
c65c378b7f
- Bitstruct as substruct fails to properly work with designated initializers. #2827
2026-01-25 12:48:36 +01:00
Christoffer Lerno
cf9784afee
- Bitstruct accidentally allowed other arrays than char arrays #2836
2026-01-25 12:14:34 +01:00
Christoffer Lerno
8bd942c1b8
- Store of zero in lowering did not properly handle optionals in some cases #2837
2026-01-25 04:57:35 +01:00
Christoffer Lerno
109e15b5a0
- Empty enums would return the values as zero sized arrays #2838
2026-01-25 04:41:06 +01:00
Christoffer Lerno
0fdd6bdc81
- Early exit in macro call crashes codegen #2820
2026-01-25 00:52:57 +01:00
Christoffer Lerno
378b35265b
- Raw vaargs with optional return not lowered correctly #2819
2026-01-24 23:54:20 +01:00
Christoffer Lerno
b5e25e3857
Constant deref of subscript had inserted checks #2818
2026-01-24 23:24:36 +01:00
Christoffer Lerno
9b2fc04959
ompile time dereference of a constant slice was too generous #2821
2026-01-24 22:42:04 +01:00
Christoffer Lerno
ce8167a102
- Incorrectly try compile time int check on vector #2815
...
- Generating typeid from function gives incorrect typeid #2816
- Recursive definitions not discovered when initializer is access on other const #2817
- Slice overrun detected late hit codegen assert #2822
2026-01-24 19:38:51 +01:00
Christoffer Lerno
397d065a74
- Constant shifting incorrectly doesn't flatten the underlying vector base #2825
...
- String not set as attributes resolved breaking has_tagof #2824
- Self referencing forward resolved const enum fails to be properly detected #2823
2026-01-24 18:32:26 +01:00
Christoffer Lerno
5e23817a3d
- Comparing a flexible array member to another type would hit an assert. #2830
...
- Underlying slice type not checked correctly in $defined #2829
- Checking for exhaustive cases is done even in if-chain switch if all is enum #2828
2026-01-24 17:57:56 +01:00
Christoffer Lerno
396263f5c3
De-macro readline.
2026-01-23 22:45:58 +01:00
Christoffer Lerno
26d0760c0d
Make counting sort normal.
2026-01-23 17:09:34 +01:00
Christoffer Lerno
11f090116f
Allow disabling asserts.
2026-01-23 13:09:43 +01:00
Zack Puhl
5e1c343be4
Deprecate builtin EMPTY_MACRO_SLOT for optional macro arguments ( #2805 )
...
* add deprecations to macro slot builtins
* refactor all stdlib uses of now-deprecated EMPTY_MACRO_SLOT; release notes
* update incorrect releasenotes ref to this pr
* remove leftover comments from refactoring
* remove unnecessary `EmptySlot`-like type in countingsort; use private macro directly
2026-01-23 12:34:50 +01:00
Christoffer Lerno
0e69432e3d
Improved error diagnostics for memory overflow.
2026-01-23 11:58:19 +01:00
Christoffer Lerno
94a26d9483
Add asserts, tracking Windows bug
2026-01-23 11:51:51 +01:00
Christoffer Lerno
efa5bdc6df
Add better error message on VirtualAlloc failure on windows.
2026-01-23 11:45:00 +01:00
Christoffer Lerno
459969ddb2
Make sure we don't switch over bad things.
2026-01-23 01:22:58 +01:00
Christoffer Lerno
ae5047b73f
Deprecating multi-level array length inference. int[*][*] is deprecated and will be removed 0.8.0.
2026-01-22 23:50:39 +01:00
Christoffer Lerno
17f3db835c
- Remove dependency on test tmp library for stdlib compiler tests. #2800
2026-01-22 22:15:34 +01:00
Christoffer Lerno
1845a515ca
- Empty ichar slice + byte concatenation hit an assert. #2789
2026-01-22 21:39:03 +01:00
Christoffer Lerno
bf50178eb3
$typeof(<type>) returns typeinfo, causing errors #2795
2026-01-22 20:04:09 +01:00
Christoffer Lerno
32675161c4
- Attrdef eval environment lacked rtype, causing error on invalid args #2797
2026-01-22 19:47:37 +01:00
Christoffer Lerno
e257500e03
Recursive definition of tag not detected with nested tag/tagof #2790
2026-01-22 19:16:54 +01:00
Christoffer Lerno
0add42b0a0
- Make foo.$abc implicitly mean foo.eval("$abc").
2026-01-22 16:46:07 +01:00
Christoffer Lerno
b14053df41
- Too deeply nested scopes was a fatal crash and not a regular semantic error. #2796
2026-01-22 15:13:01 +01:00
Christoffer Lerno
6a78864b6c
Instantiating an alias of a user-defined type was not properly caught #2798
2026-01-22 13:50:57 +01:00
Christoffer Lerno
b1fea45cd1
Using an optional type as generic parameter was not properly caught #2799
2026-01-22 13:34:16 +01:00
Christoffer Lerno
cef48482f1
Unable to access fields of a const inline enum with an aggregate underlying type. #2802
2026-01-21 13:22:46 +01:00
Christoffer Lerno
a126a25d66
Casting const bytes to vector with different element size was broken #2787
2026-01-21 12:56:25 +01:00
Christoffer Lerno
61c939059d
int? ? was not correctly handled. #2786
2026-01-21 00:52:18 +01:00
Christoffer Lerno
5fa820a462
When a global const has invalid attributes, handling is incorrect, leading to a crash #2785 .
2026-01-21 00:43:30 +01:00
Christoffer Lerno
472124dab3
Bug in sysv abi when passing union in with floats #2784
2026-01-21 00:34:37 +01:00
Christoffer Lerno
1e11b6c442
Inferring the size of a slice with an inner inferred array using {} isn't detected as error #2783
2026-01-20 23:58:45 +01:00
Christoffer Lerno
34a86852c6
Failed to reject void compile time variables, leading to crash. #2781
2026-01-20 23:07:11 +01:00
Christoffer Lerno
52afbdbde9
Recursive constant definition not properly detected, leading to assert #2780
2026-01-20 18:28:13 +01:00
Christoffer Lerno
888657cc97
- $typeof untyped list crashes when trying to create typeid from it. #2779
2026-01-20 17:54:05 +01:00
Christoffer Lerno
d7bfddf35e
Broken cast from fault to array pointer #2778 .
2026-01-20 17:43:16 +01:00
Christoffer Lerno
9c435352b9
- Second value in switch range not checked properly, causing an error on non-const values. #2777
2026-01-20 17:12:41 +01:00
Christoffer Lerno
3fe55b5e51
- Vectors not converted to arrays when passed as raw vaargs. #2776
2026-01-20 17:00:09 +01:00
Christoffer Lerno
cdabe8fd9e
- Create optional with ~ instead of ?. return io::EOF?; becomes return io::EOF~.
...
- Deprecated use of `?` to create optional.
2026-01-20 16:10:28 +01:00
Christoffer Lerno
5390ca6250
- Eager evaluation of macro arguments would break inferred arrays on some platforms. #2771 .
2026-01-20 13:02:14 +01:00
Christoffer Lerno
61e84e4d34
One last regression fix.
2026-01-20 11:47:17 +01:00
Christoffer Lerno
1b82b7d2f2
Fix regression with conditional methods.
2026-01-20 11:20:39 +01:00
Christoffer Lerno
49f59d82c9
Fix regression.
2026-01-20 01:26:29 +01:00
Christoffer Lerno
e84e23f7ec
Fix Using @if with methods with generic params only inferred from the parent type fails #2770
2026-01-20 01:04:12 +01:00