[Issue 9397] Size error with struct with ctor and self-typed nested enum

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu May 1 13:06:56 PDT 2014


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

--- Comment #8 from Vladimir Panteleev <thecybershadow at gmail.com> ---
> Regarding normal vs. regression, you can also view it this way: The code above is valid and did the right thing, even if just by accident.

I agree with this. A valid fix which would not qualify as being labeled a
regression would be to forbid adding fields after the size has already been
queried, i.e. allow such code if the enums occur at the end of the struct.

--


More information about the Digitalmars-d-bugs mailing list