[Issue 14272] DMD segfault on invalid circular enum initialization

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Mar 11 05:44:35 PDT 2015


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

--- Comment #6 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Ketmar Dark from comment #5)
> thank you. may i ask you a question? why it checks for `global.gag`? judjing
> from comments i suspect that this is a hackfix for something, as no other
> `error()` calls does such check in this function.

Yes, it's a hack to avoid Phobos code breaking, that was added by Don. When I
create a pull for this issue, I tested whether we can be remove it, but
unfortunately it's still needed.

--


More information about the Digitalmars-d-bugs mailing list