ringabout
67707a54b5
fixes #18367 and #21222 ; using quote inside static block ( #25907 )
...
fixes #18367
fixes #21222
1. In vmdef.nim:304, newCtx now sets templInstCounter: new int when it
builds TCtx.
2. vm.nim:1490 — During VM execution of templates, c.templInstCounter is
passed to evalTemplate
3. evaltempl.nim:204 — instID: instID[] dereferences the ref int
4. With a nil templInstCounter, this would crash
5. The same initialization already exists on the semantic side in
sem.nim:787, so this change makes the VM path consistent with the rest
of the compiler.
2026-06-13 07:04:17 +02:00
..
2023-06-29 11:21:22 +02:00
2023-04-21 15:37:58 +02:00
2021-02-23 09:02:06 +01:00
2022-11-06 22:25:55 +08:00
2023-08-11 18:50:31 +08:00
2023-01-31 19:22:10 +01:00
2022-06-13 09:01:40 +02:00
2022-11-07 14:36:43 +01:00
2026-02-25 19:09:24 +01:00
2023-05-06 18:04:08 +02:00
2026-06-04 13:29:48 +02:00
2020-12-28 14:13:21 +01:00
2024-11-16 10:43:58 +01:00
2021-05-08 00:27:06 +02:00
2023-06-06 06:54:07 +02:00
2022-01-16 21:10:35 +01:00
2021-04-04 13:47:28 -07:00
2024-12-06 20:19:57 +08:00
2024-12-09 08:11:47 +01:00
2024-10-03 19:35:53 +02:00
2020-11-24 16:09:00 +01:00
2024-10-26 20:49:07 +02:00
2023-09-01 08:59:48 +02:00
2024-09-09 11:29:30 +02:00
2024-09-09 11:29:30 +02:00
2025-02-14 20:54:17 +01:00
2025-02-14 20:54:17 +01:00
2025-02-14 20:54:17 +01:00
2025-02-14 20:54:17 +01:00
2024-07-09 12:59:21 +02:00
2024-09-17 06:29:49 +02:00
2023-06-06 06:54:07 +02:00
2022-08-23 19:28:51 +02:00
2024-10-06 19:36:46 +02:00
2024-12-06 19:00:59 +08:00
2022-06-22 08:43:58 +02:00
2025-10-17 17:32:28 +02:00
2022-08-23 19:28:51 +02:00
2024-09-04 09:13:04 +02:00
2024-09-04 09:13:04 +02:00
2023-06-06 06:54:07 +02:00
2023-06-06 06:54:07 +02:00
2023-09-01 15:38:25 +02:00
2025-01-22 14:05:57 +01:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2020-12-28 14:13:21 +01:00
2022-08-23 19:28:51 +02:00
2026-06-13 07:04:17 +02:00
2022-08-23 19:28:51 +02:00
2022-08-23 19:28:51 +02:00
2023-06-29 11:21:22 +02:00
2025-02-28 17:23:19 +03:00
2023-05-02 10:49:17 +02:00
2021-03-01 07:51:12 -08:00
2020-12-28 14:13:21 +01:00
2023-06-25 00:01:08 +02:00
2024-01-18 14:50:36 +01:00
2023-08-29 14:59:49 +02:00
2022-08-23 19:28:51 +02:00
2026-04-01 00:24:06 +02:00
2021-05-02 00:26:41 +02:00
2024-08-11 16:13:26 +02:00
2022-08-23 19:28:51 +02:00
2020-12-28 14:13:21 +01:00
2022-08-23 19:28:51 +02:00
2022-09-28 15:28:45 -04:00