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

Iain Buclaw <ibuc...@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuc...@gdcproject.org

--- Comment #2 from Iain Buclaw <ibuc...@gdcproject.org> ---
The compiler is checking if the nested function 'printer' is reachable from the
function 'mmap'.

It's not, because 'printer' is nested inside 'printstuffs', as so is not
reachable.

This would fall under a category of functions that are called by alias ('fun'
is an alias to the function to call, of which the actual function is
unreachable from the scope of 'mmap').

The front-end should ideally have a way to notify the code generator of this
somehow, to notify us that there's no need to check whether the call is legal.

--

Reply via email to