Thread overview
[Issue 14996] only(EnumMembers!T) eats all my memory when T : string
Sep 01, 2015
ryan@rcorre.net
Sep 06, 2015
Kenji Hara
Sep 06, 2015
Kenji Hara
September 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14996

--- Comment #1 from ryan@rcorre.net ---
Also fails:
with(Button) return only(confirm, cancel, rotateL, rotateR, turbo, menu);

--
September 06, 2015
https://issues.dlang.org/show_bug.cgi?id=14996

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
Reduced test case:

enum Bad : string
{
    confirm = "confirm",
}

struct OnlyResult
{
    Bad[1] data;
}

void main() {}

--
September 06, 2015
https://issues.dlang.org/show_bug.cgi?id=14996

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
           Hardware|x86_64                      |All
                 OS|Linux                       |All
           Severity|normal                      |major

--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> ---
https://github.com/D-Programming-Language/dmd/pull/5046

--
September 07, 2015
https://issues.dlang.org/show_bug.cgi?id=14996

github-bugzilla@puremagic.com changed:

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

--
September 07, 2015
https://issues.dlang.org/show_bug.cgi?id=14996

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/2070e8e1386ad03d1d77d7beff910bfca31a8aad fix Issue 14996 - only(EnumMembers!T) eats all my memory when T : string

https://github.com/D-Programming-Language/dmd/commit/21e644ee74d83c64869c60830b96547736765c73 Merge pull request #5046 from 9rnsr/fix14996

Issue 14996 - only(EnumMembers!T) eats all my memory when T : string

--