https://issues.dlang.org/show_bug.cgi?id=14425
Issue ID: 14425
Summary: Indirect template instantiation within is expression
causes missing linker symbols
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
The following causes the linker to complain about missing
Foo!string.__xopEquals and .__xtoHash:
---
struct Foo(I) { I i; }
struct Bar(I) { I i; }
static assert(is(Foo!(Bar!string)));
---
Workaround is to explicitly instantiate the template:
alias Workaround = Foo!(Bar!string);
--