April 11, 2012 [Issue 7887] New: [CTFE] can't assign to returned reference | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7887 Summary: [CTFE] can't assign to returned reference Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: mailme+d@nilsb.dyndns.org --- Comment #0 from Nils <mailme+d@nilsb.dyndns.org> 2012-04-10 18:54:14 PDT --- $ 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 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation