D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 14184 - Cannot resolve type for lambda stringof in constructor
Summary: Cannot resolve type for lambda stringof in constructor
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2015-02-15 21:06 UTC by Peter Alexander
Modified: 2024-12-13 18:40 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 Peter Alexander 2015-02-15 21:06:31 UTC
----------------------------
alias id(alias a) = a;

struct A(alias f) {
  alias g = id!(a => f(a));
  this(int) {
    g.stringof;
  }
}

A!(a => a) x;
----------------------------

bug.d(6): Error: cannot resolve type for this.__lambda3
bug.d(10): Error: template instance bug.A!((a) => a) error instantiating
Comment 1 dlangBugzillaToGithub 2024-12-13 18:40:23 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

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

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