[Issue 14425] New: Indirect template instantiation within is expression causes missing linker symbols

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Apr 8 16:16:58 PDT 2015


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: nobody at puremagic.com
          Reporter: sludwig at outerproduct.org

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);

--


More information about the Digitalmars-d-bugs mailing list