-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
@floatFromInt on large integers causes compiler crash #18820
Copy link
Copy link
Open
Labels
arch-aarch6464-bit Arm64-bit Armarch-arm32-bit Arm32-bit Armarch-avr8-bit AVR8-bit AVRarch-mips6464-bit MIPS64-bit MIPSarch-powerpc6464-bit Power ISA64-bit Power ISAarch-riscv6464-bit RISC-V64-bit RISC-Varch-wasm32-bit and 64-bit WebAssembly32-bit and 64-bit WebAssemblybackend-llvmThe LLVM backend outputs an LLVM IR Module.The LLVM backend outputs an LLVM IR Module.bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorupstreamAn issue with a third party project that Zig uses.An issue with a third party project that Zig uses.
Milestone
Metadata
Metadata
Assignees
Labels
arch-aarch6464-bit Arm64-bit Armarch-arm32-bit Arm32-bit Armarch-avr8-bit AVR8-bit AVRarch-mips6464-bit MIPS64-bit MIPSarch-powerpc6464-bit Power ISA64-bit Power ISAarch-riscv6464-bit RISC-V64-bit RISC-Varch-wasm32-bit and 64-bit WebAssembly32-bit and 64-bit WebAssemblybackend-llvmThe LLVM backend outputs an LLVM IR Module.The LLVM backend outputs an LLVM IR Module.bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorupstreamAn issue with a third party project that Zig uses.An issue with a third party project that Zig uses.
Zig Version
0.12.0-dev.2565+9bf97b849
Steps to Reproduce and Observed Behavior
Compiling the following code causes a compiler crash:
The following is printed to stdout:
This is on a macos-aarch64 computer. This crash seems to occur on any variable integer with a type larger than u256.
Expected Behavior
This test is either expected to compile or generate a compile error.