Thread overview
[Issue 8805] New: corrupt data at compile time.
Oct 11, 2012
Caligo
Oct 22, 2012
Don
Dec 12, 2012
Don
October 11, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8805

           Summary: corrupt data at compile time.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: iteronvexor@gmail.com


--- Comment #0 from Caligo <iteronvexor@gmail.com> 2012-10-11 15:25:40 PDT ---
struct S { int a; }

struct Ss
{
  S[] _data;
  alias _data this;

  this(S[] s...) { _data = s; }
}

enum s1 = S(1);
enum s2 = S(2);
enum s3 = S(3);
enum res = Ss(s1, s2, s3);

// prints [S(3), S(3), S(3)]
pragma(msg, res);


Any idea how soon we should expect for something like this to be fixed?  Any workarounds ?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 22, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8805


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |clugdbug@yahoo.com.au


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2012-10-22 03:17:28 PDT ---
I can reproduce this on 2.060, but it seems to be fixed in github. Might be a duplicate, but it's not obvious to me which commit would have fixed this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8805


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2012-12-12 04:54:32 PST ---
*** This issue has been marked as a duplicate of issue 7810 ***

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