Fails to compile on Windows with `--gc:orc`
As the title says, the following program fails to compile on Windows with --gc:orc:
import serial
for i in listSerialPorts():
echo i
Expected behavior:
- Sample program compiles
Actual behavior:
- The program fails to compile with
--gc:orcand we get the following message:
$HOME\.nimble\pkgs\serial-1.1.5\serial\private\utils\windows_registry.nim(89, 81) Error: expression cannot be cast to pointer
Nim Version: 1.6.12
OS: Windows 11 Pro 22H2 Build 22621.1702
Interesting. I haven’t actually tested with orc, but will do so next weekend when I next have access and time to test. Thanks for bringing this to my attention!On 15 May 2023, at 19:32, Mark Leyva @.***> wrote: As the title says, the following program fails to compile on Windows with --gc:orc: import serial
for i in serialPorts(): echo i Expected behavior:
Sample program compiles
Actual behavior:
The program fails to compile with --gc:orc and we get the following message:
$HOME.nimble\pkgs\serial-1.1.5\serial\private\utils\windows_registry.nim(89, 81) Error: expression cannot be cast to pointer
Nim Version: 1.6.12 OS: Windows 11 Pro 22H2 Build 22621.1702
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>