Bug 14425 – Indirect template instantiation within is expression causes missing linker symbols
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-08T23:16:00Z
Last change time
2015-06-17T21:04:45Z
Keywords
link-failure, pull
Assigned to
nobody
Creator
sludwig
Comments
Comment #0 by sludwig — 2015-04-08T23:16:58Z
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);