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

           Summary: Regression: Struct literals cannot be initialized with
                    another struct literal
           Product: D
           Version: 2.035
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@yahoo.com.au> 2010-01-05 01:14:34 PST ---
Worked in DMD2.034, fails on 2.035 and later.
And where the heck did the type int come from???
----
struct CopyTest
{
   double x;
}

enum CopyTest z = CopyTest(5.3);
enum CopyTest w = z;
------
bug.d(6): Error: cannot implicitly convert expression ((CopyTest)(5.3)) of type
int to CopyTest

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

Reply via email to