agra
2f0905b407
fix(0139): reject by-value self-referential types loudly (was a segfault)
...
A nominal aggregate that contains itself (or a mutual peer) BY VALUE has no
finite layout and infinite-recursed typeSizeBytes into a stack overflow —
for SOURCE enums/structs as well as comptime-constructed types.
New `checkInfiniteSize` pass (lower/decl.zig, Pass 1g — after type
registration, before body lowering): walks the by-VALUE containment graph
(pointer/slice/optional payloads break the cycle, so `*Self` stays valid);
on a back-edge it emits a loud diagnostic — "type 'X' is infinitely sized
(it contains itself by value); use a pointer ('*X') to break the cycle" —
and poisons the offending field to `.unresolved` so sizing can't recurse
before the build halts on the error. Covers source + declare/define types,
direct + mutual recursion.
examples/1178 locks the diagnostic; issue 0139 marked RESOLVED. This also
completes METATYPE PLAN F5's by-value-self-reference rejection. Full suite
green (675).
2026-06-16 22:24:31 +03:00
..
2026-06-15 11:18:35 +03:00
2026-06-15 11:18:35 +03:00
2026-06-15 11:14:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-05-27 21:44:39 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-01 16:47:51 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-04 02:00:13 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-05 01:32:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-04 17:04:41 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-05 20:48:49 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 12:35:20 +03:00
2026-06-05 23:33:22 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-09 22:16:47 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-12 09:31:53 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 13:36:54 +03:00
2026-06-15 11:18:35 +03:00
2026-06-12 21:52:11 +03:00
2026-06-13 18:55:41 +03:00
2026-06-13 18:55:41 +03:00
2026-06-13 13:41:30 +03:00
2026-06-13 13:41:30 +03:00
2026-06-13 18:55:10 +03:00
2026-06-13 21:18:40 +03:00
2026-06-15 20:21:25 +03:00
2026-06-16 06:29:36 +03:00
2026-06-16 22:24:31 +03:00