[dmd-internals] [D-Programming-Language/dmd] 251a8b: fix Issue 8526 - DMD 2.060 regression: anonymous d...

GitHub noreply at github.com
Fri Nov 9 04:15:52 PST 2012


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 251a8bb0ede5e45bf5f41b60554a2962261516ff
      https://github.com/D-Programming-Language/dmd/commit/251a8bb0ede5e45bf5f41b60554a2962261516ff
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2012-11-09 (Fri, 09 Nov 2012)

  Changed paths:
    M src/e2ir.c
    M test/runnable/xtest46.d

  Log Message:
  -----------
  fix Issue 8526 - DMD 2.060 regression: anonymous delegate call in foreach loop

This regression has occured from the commit:
https://github.com/D-Programming-Language/dmd/commit/38a0a5141a3455395e8b9571a57bf85ed698c6b3

But the root cause is a bug in glue layer. When an internal ref variable is marked as closure var, the glue layer had generated incorrect code for that.


  Commit: 26870291ebcb9512bc3c7a3099719b3ef8596bd7
      https://github.com/D-Programming-Language/dmd/commit/26870291ebcb9512bc3c7a3099719b3ef8596bd7
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2012-11-09 (Fri, 09 Nov 2012)

  Changed paths:
    M test/runnable/xtest46.d

  Log Message:
  -----------
  fix Issue 6141 - Bad code with ref-foreach and closures


  Commit: 8fc3e4b59bf5786accee257d301ca8de8cf8a277
      https://github.com/D-Programming-Language/dmd/commit/8fc3e4b59bf5786accee257d301ca8de8cf8a277
  Author: Don Clugston <dclugston at googlemail.com>
  Date:   2012-11-09 (Fri, 09 Nov 2012)

  Changed paths:
    M src/e2ir.c
    M test/runnable/xtest46.d

  Log Message:
  -----------
  Merge pull request #1272 from 9rnsr/fix8526

Issue 8526 & 6141 - DMD 2.060 regression: anonymous delegate call in foreach loop


Compare: https://github.com/D-Programming-Language/dmd/compare/3bdf17e8300e...8fc3e4b59bf5


More information about the dmd-internals mailing list