[Issue 24852] LDC fails when compile foreach for the target avr.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 10 13:32:47 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24852
--- Comment #2 from cbleser <cr at tagion.org> ---
The test program was compiled as follows
D style test
ldc2 -betterC -mtriple=avr -gcc=avr-gcc test.d
Invalid bitcast
%20 = bitcast i16 %18 to i32
LLVM ERROR: Broken module found, compilation aborted!
#0 0x00006535b26c02e7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/home/carsten/bin/ldc2-1.37.0-linux-x86_64/bin/ldc2+0x6acf2e7)
fish: Job 1, 'ldc2 -betterC -mtriple=avr -gcc…' terminated by signal SIGABRT
(Abort)
C style test
ldc2 -betterC -mtriple=avr -gcc=avr-gcc test_ptr.d
The C style compiles fine.
--
More information about the Digitalmars-d-bugs
mailing list