Thread overview
[Issue 21300] C++ header generation produce nonsense code on enum with enum as parent
Oct 25, 2020
Dlang Bot
Oct 25, 2020
Dlang Bot
October 25, 2020
https://issues.dlang.org/show_bug.cgi?id=21300

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg
           Severity|blocker                     |normal

--- Comment #1 from moonlightsentinel@disroot.org ---
Reduced to normal because the header file is not required to be compilable.

--
October 25, 2020
https://issues.dlang.org/show_bug.cgi?id=21300

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@MoonlightSentinel created dlang/dmd pull request #11906 "dtoh: Don't use enum namespaces as types" fixing this issue:

- Fix 21300 - Don't cast to enum emitted as namespace (dtoh)

  The enum members are declared as variables of the base type, so the cast
  is redundant anyway.

https://github.com/dlang/dmd/pull/11906

--
October 25, 2020
https://issues.dlang.org/show_bug.cgi?id=21300

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #11906 "dtoh: Don't use enum namespaces as types" was merged into master:

- dccaf221697979c011f0f0520f8687a970c1f5ff by MoonlightSentinel:
  Fix 21300 - Don't cast to enum emitted as namespace (dtoh)

  The enum members are declared as variables of the base type, so the cast
  is redundant anyway.

https://github.com/dlang/dmd/pull/11906

--