D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17827 - Unused lazy parameter supposedly calls dtor
Summary: Unused lazy parameter supposedly calls dtor
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-14 21:33 UTC by Eyal
Modified: 2024-12-13 18:54 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 2017-09-14 21:33:37 UTC
struct A { ~this() {} }
void foo(lazy A a) pure {} // Error: pure function 'foo' cannot call impure destructor 'A.~this'
Comment 1 dlangBugzillaToGithub 2024-12-13 18:54:32 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19317

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB