ldc icon indicating copy to clipboard operation
ldc copied to clipboard

The LLVM-based D Compiler.

Results 337 ldc issues
Sort by recently updated
recently updated
newest added

```D void main () { int[] arr = new int[](42); int[] arr2 = new int[](200); arr[] = arr2; } ``` Tried on OSX with v1.26.0 (from Homebrew) and v1.27.0-beta3 (from...

The following code calls __tls_get_addr multiple times instead of once: ```D int x; int y; void foo() { x = 1; y = 2; } ``` This is the generated...

The build of 1.26.0 here gets through 60% of the process and dies with: ``` std/math/algebraic.d(1073): Error: shift by -28 is outside the range 0..31 std/math/algebraic.d(818): called from here: `powIntegralImpl(val)`...

Input ```d import core.simd; alias __m128d = double2; alias __m128 = float4; alias __m128i = int4; version(LDC) import ldc.simd; __m128d _mm_blendv_pd (__m128d a, __m128d b, __m128d mask) @trusted { {...

Which requires calling different druntime hooks in the glue layer.

``` Testing forkgc2 /Users/runner/work/1/build/runtime/druntime-test-gc-debug/forkgc2 gnumake: *** [/Users/runner/work/1/build/runtime/druntime-test-gc-debug/forkgc2.done] Abort trap: 6 ``` Happened twice in a row yesterday with Azure image `20210626.1` after the tiny Travis change. Was green with `20210620.1`....

@lolp1 recently raised the issue that they have to add: ```D version(LDC) { version(protection) { pragma(inline, true): } version(protection) { pragma(LDC_no_typeinfo): } version(production) { pragma(LDC_no_moduleinfo); } } ``` To every...

Based on https://issues.dlang.org/show_bug.cgi?id=14758#c15, DMD has improved wrt. unreferenced `TypeInfo`s ending up in the binary, while LDC still produces fat binaries (at least did in v1.0 according to the comment).

`dub build --compiler=ldc2` fails with many `undefined reference` errors. See build log here: https://github.com/huntlabs/hunt/issues/89 ``` ... Performing "debug" build using ldc2 for x86_64. grpc 0.4.0-beta.1: building configuration "library"... /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o:function _start:...

Just got this stack trace: ``` ---------------- ??:? nothrow void agora.test.Base.testAssertHandler(immutable(char)[], ulong, immutable(char)[]) [0x10ea8ad84] ??:? onAssertErrorMsg [0x10f844ac1] ??:? _d_assert_msg [0x10f844ed5] ??:? agora.consensus.data.Enrollment.Enrollment agora.test.Base.TestValidatorNode.createEnrollmentData() [0x10ea01c1b] ??:? _DThn760_5agora4test4Base17TestValidatorNode20createEnrollmentDataMFZSQCj9consensus4data10EnrollmentQm [0x10ea027da] ??:? void geod24.LocalRest.RemoteAPI!(agora.test.Base.TestAPI,...