mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 12:53:14 +01:00
3f448afa3798f3d12ed3538036143d0d37a4d41c
The test case that would previously crash:
a.d
---
module a;
@property bool empty(T)(in T[] a) {
return !a.length;
}
void find(alias pred,R1)(R1 haystack) {
simpleMindedFind!pred(haystack);
}
void simpleMindedFind(alias pred, R1)(R1 haystack) {
bool haystackTooShort() {
return haystack.empty;
}
}
---
b.d
---
module b;
import c;
void getTimeZone() {
indexOf();
}
---
c.d
---
module c;
import a;
void indexOf()() {
find!({})("");
}
---
LLVM D Compiler (LDC) This compiler is based on the Digital Mars D (DMD) compiler frontend, and the LLVM compiler toolkit. See LICENSE for licensing information. For more information, including build instructions, visit the LDC website: http://www.dsource.org/projects/ldc
Description
Languages
C
75.2%
C++
23.2%
D
0.7%
CMake
0.6%
Shell
0.2%