[Issue 19213] goto skips declaration of variable in std.algorithm.iteration.joiner

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 19 16:36:33 UTC 2018


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

--- Comment #6 from Eduard Staniloiu <edi33416 at gmail.com> ---
(In reply to kinke from comment #5)
> While I'm not convinced the `goto`s in the `pop{Front,Back}EmptyElements`
> mixins in Phobos are the most elegant way of expressing the logic, the issue
> is that the frontend warns about a skipped *temporary* variable declaration,
> whose lifetime doesn't extend to the goto target.
> 

This is true: the issue spawns from the frontend.

Until this get's fixed, I have a PR to fix this
https://github.com/dlang/phobos/pull/6803

--


More information about the Digitalmars-d-bugs mailing list