[dmd-internals] [D-Programming-Language/dmd] 3a0368: fix Issue 9254 - ICE on invalid foreach aggregate

GitHub noreply at github.com
Fri Jan 4 00:48:18 PST 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 3a036842048beba5543f98c054b9fa30a1910c17
      https://github.com/D-Programming-Language/dmd/commit/3a036842048beba5543f98c054b9fa30a1910c17
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-01-03 (Thu, 03 Jan 2013)

  Changed paths:
    M src/statement.c
    A test/fail_compilation/ice9254a.d
    A test/fail_compilation/ice9254b.d
    A test/fail_compilation/ice9254c.d

  Log Message:
  -----------
  fix Issue 9254 - ICE on invalid foreach aggregate

ForeachRangeStatement and WhileStatement are basically replaced into ForStatement in semantic phase.
If any error occurs, they will be left as is, however.

Therefor, `assert(0)` in blockExit, usesEH, comeFrom have the potential to be invoked.


  Commit: f762d5920e5b0b03753bfa3aab82c71ec90cb876
      https://github.com/D-Programming-Language/dmd/commit/f762d5920e5b0b03753bfa3aab82c71ec90cb876
  Author: Walter Bright <walter at walterbright.com>
  Date:   2013-01-04 (Fri, 04 Jan 2013)

  Changed paths:
    M src/statement.c
    A test/fail_compilation/ice9254a.d
    A test/fail_compilation/ice9254b.d
    A test/fail_compilation/ice9254c.d

  Log Message:
  -----------
  Merge pull request #1430 from 9rnsr/fix9254

Issue 9254 - ICE on invalid foreach aggregate


Compare: https://github.com/D-Programming-Language/dmd/compare/28a095dde0b3...f762d5920e5b


More information about the dmd-internals mailing list