Summary: Reference to rvalue segfaults
           Product: D
           Version: unspecified
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-11-02 08:55:12 PDT ---
This code

    void foo(ref string bar)
        bar = bar[1 .. $];


segfaults with dmd v2.056 on Linux.
In my understanding the problem is that "test" is an rvalue and dmd should
report an compile error. I have no complete understanding regarding lvalues vs.
rvalues in D.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to