[Issue 13375] New: Linking failure when importing both std.regex and std.algorithm
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Aug 25 04:04:18 PDT 2014
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: nobody at puremagic.com
Reporter: puneet at coverify.org
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(){}
--
More information about the Digitalmars-d-bugs
mailing list