https://issues.dlang.org/show_bug.cgi?id=13375
Issue ID: 13375
Summary: Linking failure when importing both std.regex and
std.algorithm
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
Priority: P1
Component: Phobos
Assignee: [email protected]
Reporter: [email protected]
Here is the reduced test case. With the github DMD/Phobos I get...
$ rdmd --force foo.d
/tmp/.rdmd-1000/rdmd-foo.d-52164644A907860119A1D1FE4E50789F/objs/foo.o:foo.d:function
_D3std5range37__T11SortedRangeTAiVAyaa5_61203c2062Z11SortedRange5emptyMFNaNbNdNiNfZb:
error: undefined reference to
'_D3std5array12__T5emptyTiZ5emptyFNaNbNdNiNfxAiZb'
import std.regex;
import std.algorithm;
void foo(string bar) {
split(bar, regex("_"));
int[] test ;
test.sort();
}
void main(){}
--