[Issue 15251] [REG2.069.0-rc1] std.datetime bug with -inline
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Oct 28 01:40:38 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15251
--- Comment #7 from github-bugzilla at puremagic.com ---
Commits pushed to stable at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/5ea992ff02f216438341f17835560d3d818124be
fix Issue 15251 - std.datetime bug with -inline
The problem is in CTFE interpreter.
Inlining had introduced `cast(void)` expression to `ForStatement.increment`
part,
then it had hit following interpret issues.
1. `CastExp.interpret` does not work for `cast(void)` if `goal` is not
`ctfeNeedNothing`.
2. `ForStatement.interpert` does not evaluate its `increment` part with
`ctfeNeedNothing`.
I fix both of them for the best work, although fixing one of them can fix the
original issue,
https://github.com/D-Programming-Language/dmd/commit/1b21ea36893838e30e6b861b4e9000a276cad5d6
Merge pull request #5235 from 9rnsr/fix15251
[REG2.069.0-rc1] Issue 15251 - std.datetime bug with -inline
--
More information about the Digitalmars-d-bugs
mailing list