Thread overview
[Issue 10495] New: Incorrect "initializer required" error using lambdas in class with fields with disabled default construction
Jun 28, 2013
Denis Shelomovskij
Sep 29, 2013
Kenji Hara
Sep 30, 2013
Andrej Mitrovic
June 28, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10495

           Summary: Incorrect "initializer required" error using lambdas
                    in class with fields with disabled default
                    construction
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: verylonglogin.reg@gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2013-06-28 19:18:41 MSD ---
This blocks usage of `std.range` and `std.algorithm` functions in some cases:
---
struct S0
{ @disable this(); }

struct S(alias f)
{
    void g() { }
}

class C
{
    S0 s = S0.init;

    void h()
    {
        S!(a => a) st; // Error: variable main.C.h.st initializer required for
type S!(__lambda2)
    }
}
---

May be related to Issue 7892.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 29, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10495


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-09-28 23:05:17 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2595

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 30, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10495



--- Comment #2 from github-bugzilla@puremagic.com 2013-09-30 12:07:55 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b6ddb94604faee2eaecdd76fb89738e38826828c
fix Issue 10495 - Incorrect "initializer required" error using lambdas in class
with fields with disabled default construction

https://github.com/D-Programming-Language/dmd/commit/ccb3529bae08954c75a83dbcfe89f6d8356fec0b Merge pull request #2595 from 9rnsr/fix10495

Issue 10495 - Incorrect "initializer required" error using lambdas in class with fields with disabled default construction

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 30, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10495


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------