[Issue 4836] New: "duplicated union initialization" without a union

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 7 12:49:50 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4836

           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
        AssignedTo: nobody at puremagic.com
        ReportedBy: i.kasiuk at gmx.de


--- Comment #0 from Ivo Kasiuk <i.kasiuk at gmx.de> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list