On Tuesday, 2 June 2020 at 06:19:56 UTC, Streaksu wrote: > Then is this a compiler bug? Or something I should approach by > other coding practices. Thanks for the help so far btw. Yes, a compiler bug. You could help by trying to reduce it to a single-file test case and then filing a DMD issue about it.