January 06, 2016 [dmd-internals] [D-Programming-Language/dmd] 954534: fix Issue 15384 - assignment is sometimes still ac... | ||||
---|---|---|---|---|
| ||||
Attachments:
| 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@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@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 |
Copyright © 1999-2021 by the D Language Foundation