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

--- Comment #0 from Don <> 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:
------- You are receiving this mail because: -------

Reply via email to