www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14743] New: dmd: template.c:6926: int

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 puremagic.com
          Reporter: useless_account99 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)() {}
}

--
Jun 28 2015