D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19755 - Compiler crash
Summary: Compiler crash
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: ice, pull
Depends on:
Blocks:
 
Reported: 2019-03-20 08:33 UTC by Eyal
Modified: 2020-03-21 03:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Eyal 2019-03-20 08:33:53 UTC
This piece of code generates a crash on both dmd and ldc:

struct Thunk(Dummy) {
    void opAssign(int dlg) {}
    auto get() inout {
        Thunk* self;
        self.x = 0;
    }
    alias get this;
}

alias T = Thunk!int;
Comment 1 Dlang Bot 2019-03-20 09:28:30 UTC
@Basile-z created dlang/dmd pull request #9470 "fix issue 19755 - Compiler crash" fixing this issue:

- fix issue 19755 - Compiler crash

https://github.com/dlang/dmd/pull/9470
Comment 2 Dlang Bot 2019-03-20 10:36:53 UTC
dlang/dmd pull request #9470 "fix issue 19755 - Compiler crash" was merged into stable:

- bfd0429f1b5b877281b06562deb176a6133c2eab by Basile Burg:
  fix issue 19755 - Compiler crash

https://github.com/dlang/dmd/pull/9470