www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16091] New: Assertion `thisfd->isNested() || thisfd->vthis'

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

          Issue ID: 16091
           Summary: Assertion `thisfd->isNested() || thisfd->vthis'
                    failed.
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: maxsamukha gmail.com

void foo(alias f)() {
    void bar() {
        f();
    }
    bar();
}

void main() {
    void f()() {
    }
    foo!f();
}

dmd: toir.c:249: elem* getEthis(Loc, IRState*, Dsymbol*): Assertion
`thisfd->isNested() || thisfd->vthis' failed.

--
May 28 2016