Summary: "duplicated union initialization" without a union
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Ivo Kasiuk <> 2010-09-07 12:49:28 PDT ---
The following compilation error does not seem to make sense:

$ cat test.d
class C {
  string s = null;
  mixin template M() { }
  mixin M!() m1;            // line 4
  mixin template M(T) { }   // line 5
  mixin M!(int) m2;
$ dmd -c test
test.d(1): Error: class test.C duplicated union initialization for s

Interestingly, the file compiles without error if line 4 and 5 are swapped.

Tested with DMD v2.048

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

Reply via email to