[Issue 15490] [REG 2.067] Error variable __nrvoretval cannot be modified at compile time when using -inline
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Feb 6 16:25:25 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15490
--- Comment #5 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/b56fa1d1b02c93151f0a25d868f4459cac8d6a4d
fix Issue 15490 - Error variable __nrvoretval cannot be modified at compile
time when using -inline
CTFE interpretr can recognize a form `CommaExp(DeclaraationExp(v), VarExp(v))`
as
a CTFEable variable declaration when `v._init` is `null`. In other cases, for
examle a sole `DeclarationExp` should have v._init for CTFE-ability.
Supply `VoidInitializer` to allow inlining the temporary for NRVO.
https://github.com/D-Programming-Language/dmd/commit/31232a9c64e799c439af5e3501b20cf9b7e7372b
Merge pull request #5415 from 9rnsr/fix15490
[REG 2.067] Issue 15490 - Error variable __nrvoretval cannot be modified at
compile time when using -inline
--
More information about the Digitalmars-d-bugs
mailing list