[Issue 3675] New: Regression: Struct literals cannot be initialized with another struct literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 5 01:14:35 PST 2010


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: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at 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: -------


More information about the Digitalmars-d-bugs mailing list