August 30, 2015 [dmd-internals] [D-Programming-Language/dmd] 442baf: Don't use `foreach` if the loop body modifies the ... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: 442baf76754fc83cb2d61a5a7f0bd36438fda7f0 https://github.com/D-Programming-Language/dmd/commit/442baf76754fc83cb2d61a5a7f0bd36438fda7f0 Author: Marc Schütz <schuetzm@gmx.net> Date: 2015-08-30 (Sun, 30 Aug 2015) Changed paths: M src/statement.d A test/compilable/exception.d Log Message: ----------- Don't use `foreach` if the loop body modifies the iteration variable This fixes a segfault in compiling vibe.d. Commit: c4539ff89ebd9de75bc6b9491bba6aeb7714298e https://github.com/D-Programming-Language/dmd/commit/c4539ff89ebd9de75bc6b9491bba6aeb7714298e Author: Hara Kenji <k.hara.pg+dev@gmail.com> Date: 2015-08-31 (Mon, 31 Aug 2015) Changed paths: M src/statement.d A test/compilable/exception.d Log Message: ----------- Merge pull request #4991 from schuetzm/fix-foreach-modifying-index Don't use `foreach` if the loop body modifies the iteration variable Compare: https://github.com/D-Programming-Language/dmd/compare/92022f26905a...c4539ff89ebd |
Copyright © 1999-2021 by the D Language Foundation