https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116373
--- Comment #2 from Andrei Horodniceanu <a.horodniceanu at proton dot me> --- (In reply to Iain Buclaw from comment #1) > Upstream fix. > > https://github.com/dlang/dmd/pull/16408 Oh, I didn't think to look upstream because the code compiled fine with dmd. The example code in the issue also compiles fine for me, I don't know what's with that. Anyways, the PR does fix the issue. Thank you for the quick response.