[dmd-internals] [D-Programming-Language/dmd] 954534: fix Issue 15384 - assignment is sometimes still ac...

GitHub via dmd-internals dmd-internals at puremagic.com
Wed Jan 6 04:45:30 PST 2016


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 95453495fdb38b9c596a977595ce23966fa55be7
      https://github.com/D-Programming-Language/dmd/commit/95453495fdb38b9c596a977595ce23966fa55be7
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2015-12-04 (Fri, 04 Dec 2015)

  Changed paths:
    M src/expression.d
    M src/parse.d
    M src/statement.d
    M test/fail_compilation/diag10862.d

  Log Message:
  -----------
  fix Issue 15384 - assignment is sometimes still accepted as a condition

1. Add CommaExp.toBoolean to show error message.
2. Add checkAssignmentAsCondition and call it before semantic analysis to provide informative diagnostic.


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

  Changed paths:
    M src/expression.d
    M src/parse.d
    M src/statement.d
    M test/fail_compilation/diag10862.d

  Log Message:
  -----------
  Merge pull request #5293 from 9rnsr/fix15384

Issue 15384 - assignment is sometimes still accepted as a condition


Compare: https://github.com/D-Programming-Language/dmd/compare/b21432a31061...66ca6fe6cfe4


More information about the dmd-internals mailing list