https://issues.dlang.org/show_bug.cgi?id=19668

Nick Treleaven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #2 from Nick Treleaven <[email protected]> ---
main.func captures a runtime variable `count` whose address is not known at
compile-time. S.init must be known at compile-time. So using S.init will cause
a null context pointer for func instead of one pointing to main.count. You need
to call S's constructor, not use S.init.

--

Reply via email to