Summary: Default struct constructor problem
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-08-20 15:27:16 PDT ---
I don't understand what's happening here, but I think there is something wrong:

struct V3 {
    double[3] v;
    void foo() {
        auto v2 = v[] / 2;
        V3 r = V3(v2); // line 5
void main() {}

DMD 2.055beta gives:

test.d(5): Error: cannot implicitly convert expression (v2) of type double[] to

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

Reply via email to