[Issue 14743] New: dmd: template.c:6926: int TemplateInstance::needsTypeInference(Scope*, int)::ParamNeedsInf::fp(Dsymbol*): Assertion `td->semanticRun != PASSinit' failed.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jun 28 02:54:23 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14743

          Issue ID: 14743
           Summary: dmd: template.c:6926: int
                    TemplateInstance::needsTypeInference(Scope*,
                    int)::ParamNeedsInf::fp(Dsymbol*): Assertion
                    `td->semanticRun != PASSinit' failed.
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: useless_account99 at hotmail.com

I get the above error using DMD v2.067.1 on a Linux Mint 17.1 64-bit machine.

Can be reproduced with this code:

class A {
    auto func1 = (A a) {a.func2!int;};
    auto func2(T)() {}
}

--


More information about the Digitalmars-d-bugs mailing list