Summary: corrupt data at compile time.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD

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

Reply via email to