D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16382 - Passing &this as a CT parameter seg faults dmd
Summary: Passing &this as a CT parameter seg faults dmd
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL: http://dlang.org/
Keywords: ice
Depends on:
Blocks:
 
Reported: 2016-08-13 15:57 UTC by Eyal
Modified: 2017-03-22 12:20 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Eyal 2016-08-13 15:57:58 UTC
testcrash.d:

void bar()() {
}

struct P {
    void foo() {
        bar!(&this)();
    }
}

dmd -o- -c testcrash --> segfault

DMD64 D Compiler v2.071.1
Comment 1 Citrus 2017-01-11 21:53:45 UTC
Covered by DMD's PR https://github.com/dlang/dmd/pull/6430
Comment 2 github-bugzilla 2017-01-13 08:13:11 UTC
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/fe278833a56768799bfa067ef357c1719fb2e17a
Fix issue 16382 - Prevent a segfault when interpreting &this

https://github.com/dlang/dmd/commit/c1d138cc3860ecf8cbe06090cc321f4d5502b6ee
Merge pull request #6430 from LemonBoy/b16382

Fix issue 16382 - Prevent a segfault when interpreting &this
Comment 3 github-bugzilla 2017-01-16 23:26:23 UTC
Commits pushed to newCTFE at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/fe278833a56768799bfa067ef357c1719fb2e17a
Fix issue 16382 - Prevent a segfault when interpreting &this

https://github.com/dlang/dmd/commit/c1d138cc3860ecf8cbe06090cc321f4d5502b6ee
Merge pull request #6430 from LemonBoy/b16382
Comment 4 github-bugzilla 2017-03-22 12:20:58 UTC
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/fe278833a56768799bfa067ef357c1719fb2e17a
Fix issue 16382 - Prevent a segfault when interpreting &this

https://github.com/dlang/dmd/commit/c1d138cc3860ecf8cbe06090cc321f4d5502b6ee
Merge pull request #6430 from LemonBoy/b16382