https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #16 from Manu <turkey...@gmail.com> --- I remember my work-around; I ran the foreach inside a static module constructor! >From there I generated my reflection information about the module and registered it at runtime (in the module constructor), rather than emit data directly into the module scope. In this instance, I really need to emit functions into the module scope, and not do runtime registration like I did last time. It would be really really nice to fix this issue! --