[Issue 15396] static immutable not recognized as constant within switch statement

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Dec 2 22:17:52 PST 2015


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

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

https://github.com/D-Programming-Language/dmd/commit/260a01fe80a3383a28e20ca18d03fc34615e4db4
Fix issue 15396 - static immutable doesn't work in case statement

We should pass `WANTexpand` to `optimize` in addition to `WANTvalue` in order
to get the value out of `static immutable` (and `static const`) variable.

https://github.com/D-Programming-Language/dmd/commit/fb91273fab2148eb8d80f80de31a2e7df30bb544
Merge pull request #5295 from mathias-lang-sociomantic/fix-15396

Fix issue 15396 - static immutable doesn't work in case statement

--


More information about the Digitalmars-d-bugs mailing list