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

           Summary: Statically constructed Structs -
                    Constructor/Initialization ambiguity
           Product: D
           Version: unspecified
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: daniel...@bigpond.com


--- Comment #0 from Daniel <daniel...@bigpond.com> 2011-05-31 02:24:08 PDT ---
SO Question:
http://stackoverflow.com/questions/6184422/ambiguous-struct-constructors-in-d
Source example: http://www.pastie.org/1997238
Actual Output: 5,3 2,8 2,10
Expected Output: 2,10 2,8 2,10

If the above doesn't provide all the information, then I'll summarize:

Statically constructed structs are defaulting to the parameter list
initialization instead of using a constructor.

I'm to assume this is a bug, and possibly a flaw in ambiguity, at least a
warning should be displayed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to