Thread overview
[Issue 12829] Wrong error line number for closure allocation in @nogc function
Aug 01, 2015
Kenji Hara
June 02, 2014
https://issues.dlang.org/show_bug.cgi?id=12829

--- Comment #1 from bearophile_hugs@eml.cc ---
This reports only one closure:


void main() @nogc {
    int x;
    void delegate() @nogc foo;
    foo = () {
        int y = x;
    };
    void delegate() @nogc bar;
    bar = () {
        int y = x;
    };
}


test.d(1,6): Error: function D main @nogc function allocates a closure with the
GC

--
January 11, 2015
https://issues.dlang.org/show_bug.cgi?id=12829

--- Comment #2 from bearophile_hugs@eml.cc ---
See also Issue 13967

--
August 01, 2015
https://issues.dlang.org/show_bug.cgi?id=12829

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
           Hardware|x86                         |All
                 OS|Windows                     |All

--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> ---
https://github.com/D-Programming-Language/dmd/pull/4855

--
January 31, 2016
https://issues.dlang.org/show_bug.cgi?id=12829

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a457c8b627123fdb5e6ccf2b130e4d54c1329a56
fix Issue 12829 - Wrong error line number for closure allocation in @nogc
function

https://github.com/D-Programming-Language/dmd/commit/10a0aa2bda569cb6efbb29f4c9f31aeca9685c46 Merge pull request #4855 from 9rnsr/fix12829

Issue 12829 - Wrong error line number for closure allocation in @nogc function

--
January 31, 2016
https://issues.dlang.org/show_bug.cgi?id=12829

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
March 19, 2016
https://issues.dlang.org/show_bug.cgi?id=12829

--- Comment #5 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a457c8b627123fdb5e6ccf2b130e4d54c1329a56
fix Issue 12829 - Wrong error line number for closure allocation in @nogc
function

https://github.com/D-Programming-Language/dmd/commit/10a0aa2bda569cb6efbb29f4c9f31aeca9685c46 Merge pull request #4855 from 9rnsr/fix12829

--
August 02, 2017
https://issues.dlang.org/show_bug.cgi?id=12829

--- Comment #6 from github-bugzilla@puremagic.com ---
Commit pushed to dmd-cxx at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/146df2580973de9a3d291be7c747e4ac7c7c2f37 Issue 12829 - Wrong error line number for closure allocation in @nogc function

--