www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12334] New: Cannot access frame pointer of nested class from inside lambda

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12334

           Summary: Cannot access frame pointer of nested class from
                    inside lambda
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2014-03-09 22:06:51 PDT ---
From: http://forum.dlang.org/thread/dssheasplbyknhautzsq forum.dlang.org

void main()
{
    class B
    {
        int a;
        this(int aa) { a = aa; }
    }
    auto foo = {
        return new B(1);    // NG
    };
    static assert(is(typeof(foo) == delegate)); // fails
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 09 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12334


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

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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2014-03-09 23:34:56 PDT ---
https://github.com/D-Programming-Language/dmd/pull/3371

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 09 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12334



--- Comment #2 from github-bugzilla puremagic.com 2014-03-13 14:24:54 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b0515c5d2076b01bf778f23aeb90655ed9e5e853
fix Issue 12334 - Cannot access frame pointer of nested class from inside
lambda

https://github.com/D-Programming-Language/dmd/commit/87b8f78752a035a67aebf5de60d2440ab43c5309
Merge pull request #3371 from 9rnsr/fix12334

Issue 12334 - Cannot access frame pointer of nested class from inside lambda

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 13 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12334


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

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


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