[dmd-internals] [D-Programming-Language/dmd] afa7a5: fix Issue 9230 - Incorrect implicit immutable conv...
GitHub
noreply at github.com
Fri Dec 28 02:11:23 PST 2012
Branch: refs/heads/master
Home: https://github.com/D-Programming-Language/dmd
Commit: afa7a54422dd3ee7d6622e0b83c5c56c238023fb
https://github.com/D-Programming-Language/dmd/commit/afa7a54422dd3ee7d6622e0b83c5c56c238023fb
Author: k-hara <k.hara.pg at gmail.com>
Date: 2012-12-27 (Thu, 27 Dec 2012)
Changed paths:
M src/mtype.c
M src/mtype.h
M src/statement.c
A test/fail_compilation/test9230.d
M test/runnable/xtest46.d
Log Message:
-----------
fix Issue 9230 - Incorrect implicit immutable conversion occurs in pure function
`hasMutableIndirectionParams()` is based on the old `TypeFunction::purityLevel()` (before fixing issue 8408). So its result is consistent with `TypeFunction::purityLevel() != PUREstrong` in 2.060. Then it *fixes* the regression.
Commit: 000f02e0bad4c4d1418c58e0baa07c8e5821be5c
https://github.com/D-Programming-Language/dmd/commit/000f02e0bad4c4d1418c58e0baa07c8e5821be5c
Author: k-hara <k.hara.pg at gmail.com>
Date: 2012-12-27 (Thu, 27 Dec 2012)
Changed paths:
M src/mtype.c
M src/statement.c
M test/fail_compilation/test9230.d
M test/runnable/xtest46.d
Log Message:
-----------
Fixed the bug pointed out by Daniel Murphy.
Also updated test cases. By a recent change in 2.061 (4b2767e72c04da35e5615edaa9081b20dccd4974), direct returning of NewExp sometimes avoids immutable implicit conversion. So, test5081 should return mutable array values through local variables.
Commit: c42d35bcf92cd26c2b83c3d2e5fc21e5a0f2d296
https://github.com/D-Programming-Language/dmd/commit/c42d35bcf92cd26c2b83c3d2e5fc21e5a0f2d296
Author: Walter Bright <walter at walterbright.com>
Date: 2012-12-28 (Fri, 28 Dec 2012)
Changed paths:
M src/mtype.c
M src/mtype.h
M src/statement.c
A test/fail_compilation/test9230.d
M test/runnable/xtest46.d
Log Message:
-----------
Merge pull request #1418 from 9rnsr/fix9230
Issue 9230 - Incorrect implicit immutable conversion occurs in pure function
Compare: https://github.com/D-Programming-Language/dmd/compare/9f2d9eafacd7...c42d35bcf92c
More information about the dmd-internals
mailing list