Thread overview
[Issue 21828] Enum forward-references just assume int base type
[Issue 21828] Using enum of struct (containing another enum) before its declaration fails
Apr 15, 2021
Mark Visser
Apr 15, 2021
Mark Visser
Apr 15, 2021
Dlang Bot
Apr 15, 2021
Dlang Bot
Apr 15, 2021
Boris Carvajal
Apr 15, 2021
Boris Carvajal
Apr 16, 2021
Dlang Bot
April 15, 2021
https://issues.dlang.org/show_bug.cgi?id=21828

Mark Visser <mark@sarc.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark@sarc.nl

--
April 15, 2021
https://issues.dlang.org/show_bug.cgi?id=21828

Mark Visser <mark@sarc.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|mark@sarc.nl                |

--
April 15, 2021
https://issues.dlang.org/show_bug.cgi?id=21828

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

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

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@RazvanN7 created dlang/dmd pull request #12437 "Fix Issue 21828 - Using enum of struct (containing another enum) before its declaration fails" fixing this issue:

- Fix Issue 21828 - Using enum of struct (containing another enum) before its
declaration fails

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

--
April 15, 2021
https://issues.dlang.org/show_bug.cgi?id=21828

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@BorisCarvajal created dlang/dmd pull request #12438 "Fix Issue 21828 - Using enum of struct (containing another enum) befo…" fixing this issue:

- Fix Issue 21828 - Using enum of struct (containing another enum) before its
declaration fails

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

--
April 15, 2021
https://issues.dlang.org/show_bug.cgi?id=21828

Boris Carvajal <boris2.9@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |boris2.9@gmail.com

--- Comment #3 from Boris Carvajal <boris2.9@gmail.com> ---
reduced test case:

----
E e;

enum E
{
    a = "x"
}
----

Forward references just assume int value.

--
April 15, 2021
https://issues.dlang.org/show_bug.cgi?id=21828

Boris Carvajal <boris2.9@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Using enum of struct        |Enum forward-references
                   |(containing another enum)   |just assume int base type
                   |before its declaration      |
                   |fails                       |

--
April 16, 2021
https://issues.dlang.org/show_bug.cgi?id=21828

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12438 "Fix Issue 21828 - Enum forward-references just assume int base type" was merged into master:

- 38a016e434505cb642aab480142a40343e2b4174 by Boris Carvajal:
  Fix Issue 21828 - Enum forward-references just assume int base type

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

--