← Back to index
|
Original Bugzilla link
Bug 7887 – [CTFE] can't assign to returned reference
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-10T18:54:00Z
Last change time
2014-04-21T08:15:47Z
Keywords
CTFE, ice, pull
Assigned to
nobody
Creator
nilsbossung
Comments
Comment #0
by nilsbossung — 2012-04-10T18:54:14Z
$ cat test.d ref int ref_(ref int x) { return x; } void f() { int x; ref_(x) = 42; } static assert({f(); return true;}()); $ dmd -c -o- test.d test.d(6): Error: CTFE internal error: unsupported assignment ref_(x) = 42
Comment #1
by k.hara.pg — 2014-04-11T07:04:21Z
https://github.com/D-Programming-Language/dmd/pull/3449
Comment #2
by github-bugzilla — 2014-04-12T19:55:08Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/def0b86fde62b04a66b04b62e279d4d05aa82c4c
fix Issue 7887 - [CTFE] can't assign to returned reference
https://github.com/D-Programming-Language/dmd/commit/ab5a767da55b932bc5859f395970b680016b6154
Merge pull request #3449 from 9rnsr/fix7887 Issue 7887 - [CTFE] can't assign to returned reference
Comment #3
by k.hara.pg — 2014-04-21T08:15:47Z
*** Issue 9375 has been marked as a duplicate of this issue. ***