https://issues.dlang.org/show_bug.cgi?id=15396
--- Comment #1 from [email protected] --- 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 --
