December 02, 2015 [dmd-internals] [D-Programming-Language/dmd] 260a01: Fix issue 15396 - static immutable doesn't work in... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: 260a01fe80a3383a28e20ca18d03fc34615e4db4 https://github.com/D-Programming-Language/dmd/commit/260a01fe80a3383a28e20ca18d03fc34615e4db4 Author: Mathias Lang <mathias.lang@sociomantic.com> Date: 2015-12-03 (Thu, 03 Dec 2015) Changed paths: M src/statement.d M test/runnable/testswitch.d Log Message: ----------- 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. Commit: fb91273fab2148eb8d80f80de31a2e7df30bb544 https://github.com/D-Programming-Language/dmd/commit/fb91273fab2148eb8d80f80de31a2e7df30bb544 Author: Hara Kenji <k.hara.pg+dev@gmail.com> Date: 2015-12-03 (Thu, 03 Dec 2015) Changed paths: M src/statement.d M test/runnable/testswitch.d Log Message: ----------- Merge pull request #5295 from mathias-lang-sociomantic/fix-15396 Fix issue 15396 - static immutable doesn't work in case statement Compare: https://github.com/D-Programming-Language/dmd/compare/dc364a674c21...fb91273fab21 |
Copyright © 1999-2021 by the D Language Foundation