[dmd-internals] [D-Programming-Language/dmd] 724b6f: Fix test code bug for issue 5311

GitHub via dmd-internals dmd-internals at puremagic.com
Wed Jan 28 02:59:37 PST 2015


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 724b6f3de67527fee20fe5ce945fe8c2caea937b
      https://github.com/D-Programming-Language/dmd/commit/724b6f3de67527fee20fe5ce945fe8c2caea937b
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M test/runnable/xtest46.d

  Log Message:
  -----------
  Fix test code bug for issue 5311

'X' is just undefined identifier (I had missed to replace it with actual
class/struct name), so the __traits(compiles) didn't test compiler
behavior.


  Commit: f4c2c4b54b223a2364904a06f26e2bd96101291b
      https://github.com/D-Programming-Language/dmd/commit/f4c2c4b54b223a2364904a06f26e2bd96101291b
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M src/declaration.c
    M src/declaration.h
    M src/delegatize.c
    M src/expression.c
    M src/func.c
    M src/statement.c
    M test/fail_compilation/fail12378.d

  Log Message:
  -----------
  Propagate error in nestedRefs check

It's necessary to avoid redundant errors in fail_compilation/diag0148.d.


  Commit: 29691e0f66fb32364e076fac262b9f00e00c7a2b
      https://github.com/D-Programming-Language/dmd/commit/29691e0f66fb32364e076fac262b9f00e00c7a2b
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M src/declaration.h
    M src/expression.c
    M src/func.c
    M src/mtype.c
    M src/mtype.h

  Log Message:
  -----------
  Reorder PURExxx values then remove ugly function isPureBypassingInferenceX()

By this, we can use following convenient conditions to chech inference process.

- isPureBypassingInference() == PUREimpure
  The function is already determined to impure.
- isPureBypassingInference() == PUREfwdref
  The function is in inference process.
- isPureBypassingInference() >= PUREfwdref
  The function is in inference process or determined to pure.
- isPureBypassingInference() >= PUREweak
  The function is already determined to pure.


  Commit: 0acb94c7b8198b28386ed3c298e8c8a6829340be
      https://github.com/D-Programming-Language/dmd/commit/0acb94c7b8198b28386ed3c298e8c8a6829340be
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M src/declaration.c
    M src/expression.c
    M src/func.c
    M test/compilable/testInference.d
    A test/fail_compilation/fail9148.d

  Log Message:
  -----------
  fix Issue 14039 - function is incorrectly inferred as 'pure'

Fixes the interaction between issue 9148 behavior (more precise pure attribute annotation for nested functions) and purity inference.


  Commit: 91bd4ebb4070b4644fa80c4ff3b80ee6fb70ee96
      https://github.com/D-Programming-Language/dmd/commit/91bd4ebb4070b4644fa80c4ff3b80ee6fb70ee96
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-01-26 (Mon, 26 Jan 2015)

  Changed paths:
    M test/fail_compilation/testInference.d

  Log Message:
  -----------
  fix Issue 14049 - Wrong purity inference for nested lambda


  Commit: dfebd9cce97746aa9d32e4c980c50b5472bac578
      https://github.com/D-Programming-Language/dmd/commit/dfebd9cce97746aa9d32e4c980c50b5472bac578
  Author: Walter Bright <walter at walterbright.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M src/declaration.c
    M src/declaration.h
    M src/delegatize.c
    M src/expression.c
    M src/func.c
    M src/mtype.c
    M src/mtype.h
    M src/statement.c
    M test/compilable/testInference.d
    M test/fail_compilation/fail12378.d
    A test/fail_compilation/fail9148.d
    M test/fail_compilation/testInference.d
    M test/runnable/xtest46.d

  Log Message:
  -----------
  Merge pull request #4344 from 9rnsr/fix14039

[REG2.067a] Issue 14039 - function is incorrectly inferred as 'pure'


Compare: https://github.com/D-Programming-Language/dmd/compare/fa296e9f088e...dfebd9cce977


More information about the dmd-internals mailing list