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: nob...@puremagic.com
        ReportedBy: mailm...@nilsb.dyndns.org


--- Comment #0 from Nils <mailm...@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: -------

Reply via email to