Thread overview
[Issue 16043] Wrong line number for closure in -vgc
May 18, 2016
Kenji Hara
Dec 17, 2022
Iain Buclaw
May 18, 2016
https://issues.dlang.org/show_bug.cgi?id=16043

--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> ---
The shown line number is not wrong.

The closure environment that is closing variable foo, is allocated at the start of function test() == line 1. The delegate literal at line 4 just refers it.

So, the issue would be:
1. the message text that is not enough helpful (diagnostic), or
2. lack of information about the location where the closed variable 'foo' is
used from (enhancement).

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=16043

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=16043

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

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

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

--