[dmd-internals] [D-Programming-Language/dmd] caa20e: fix fix Issue 8556 - Using take results in a corru...

GitHub noreply at github.com
Tue Dec 18 00:04:15 PST 2012


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: caa20e924ef41724a797230988626445a4dc47a0
      https://github.com/D-Programming-Language/dmd/commit/caa20e924ef41724a797230988626445a4dc47a0
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2012-12-16 (Sun, 16 Dec 2012)

  Changed paths:
    M src/expression.c
    M src/statement.c
    A test/fail_compilation/test8556.d

  Log Message:
  -----------
  fix fix Issue 8556 - Using take results in a corrupted call to opSlice


  Commit: d618f13d6f21240168c5e6675f5ecf0d66537269
      https://github.com/D-Programming-Language/dmd/commit/d618f13d6f21240168c5e6675f5ecf0d66537269
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2012-12-16 (Sun, 16 Dec 2012)

  Changed paths:
    M src/expression.c
    M src/mars.c
    M src/mtype.c
    M test/compilable/compile1.d
    A test/fail_compilation/test8532.d

  Log Message:
  -----------
  Treat ungagged errors in Type::trySemantic

Reporting forward reference errors are temporary ungagged, so they cannot be handled by endGagging(). It's intended behavior, but is(typeof()) should return false for such ungagged errors.

On the other hand, Expression::trySemantic is much used for alias this, UFCS, and others. Keeping error result in it would stop *incorrect fallback*.


  Commit: 04cbe5d8a76186d8327c50eb46a02eb5633d7835
      https://github.com/D-Programming-Language/dmd/commit/04cbe5d8a76186d8327c50eb46a02eb5633d7835
  Author: Walter Bright <walter at walterbright.com>
  Date:   2012-12-18 (Tue, 18 Dec 2012)

  Changed paths:
    M src/expression.c
    M src/mars.c
    M src/mtype.c
    M src/statement.c
    M test/compilable/compile1.d
    A test/fail_compilation/test8532.d
    A test/fail_compilation/test8556.d

  Log Message:
  -----------
  Merge pull request #1380 from 9rnsr/fix8556

Issue 8556 - Using take results in a corrupted call to opSlice


Compare: https://github.com/D-Programming-Language/dmd/compare/8d795b04c402...04cbe5d8a761


More information about the dmd-internals mailing list