Thread overview
[Issue 13063] `enum` is allowed as storage class for functions
Jul 07, 2014
Denis Shelomovskij
Dec 17, 2022
Iain Buclaw
Jul 12, 2023
Dlang Bot
Jul 14, 2023
Dlang Bot
July 07, 2014
https://issues.dlang.org/show_bug.cgi?id=13063

Denis Shelomovskij <verylonglogin.reg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|`enum` is allowed as        |`enum` is allowed as
                   |function return type        |storage class for functions
                   |attribute                   |

--- Comment #1 from Denis Shelomovskij <verylonglogin.reg@gmail.com> ---
Also note this syntax is already used by mistake [1] probably because of recent compiler changes rejecting meaningless `const`/`immutable` attributes.

Also this currently compiles too because of Issue 13064:
---
auto enum void f();
---

[1] https://github.com/andersonpd/eris/commit/85637587c8f154a3d50360e66a29f08c5586d1b3

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=13063

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
July 12, 2023
https://issues.dlang.org/show_bug.cgi?id=13063

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel created dlang/dmd pull request #15405 "Fix Issue 13063 - `enum` is allowed as storage class for functions" fixing this issue:

- Fix Issue 13063 - `enum` is allowed as storage class for functions

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

--
July 14, 2023
https://issues.dlang.org/show_bug.cgi?id=13063

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 #15405 "Fix Issue 13063 - `enum` is allowed as storage class for functions" was merged into master:

- a0b455cf1a262ccff6c808c2d4c37236d8629dbc by Nick Treleaven:
  Fix Issue 13063 - `enum` is allowed as storage class for functions

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

--