[Issue 17836] ICE with custom 'map' template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 17 22:47:35 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17836
Iain Buclaw <ibuclaw at gdcproject.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at gdcproject.org
--- Comment #2 from Iain Buclaw <ibuclaw at 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.
--
More information about the Digitalmars-d-bugs
mailing list