$ 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
https://github.com/D-Programming-Language/dmd/pull/3449
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
*** Issue 9375 has been marked as a duplicate of this issue. ***