D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16091 - Assertion `thisfd->isNested() || thisfd->vthis' failed.
Summary: Assertion `thisfd->isNested() || thisfd->vthis' failed.
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: ice
Depends on:
Blocks:
 
Reported: 2016-05-29 05:51 UTC by Max Samukha
Modified: 2020-05-26 09:52 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Max Samukha 2016-05-29 05:51:02 UTC
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.
Comment 1 Max Samukha 2020-05-26 09:52:54 UTC
This seems to be fixed and now issues Error: function onlineapp.foo!(f).foo.bar cannot get frame pointer to onlineapp.main.f!().f