[dmd-internals] [D-Programming-Language/dmd] 260a01: Fix issue 15396 - static immutable doesn't work in...

GitHub via dmd-internals dmd-internals at puremagic.com
Wed Dec 2 22:17:50 PST 2015


  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 at 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 at 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


More information about the dmd-internals mailing list