D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8805 - corrupt data at compile time.
Summary: corrupt data at compile time.
Status: RESOLVED DUPLICATE of issue 7810
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 critical
Assignee: No Owner
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2012-10-11 15:25 UTC by Caligo
Modified: 2012-12-12 04:54 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Caligo 2012-10-11 15:25:40 UTC
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 ?
Comment 1 Don 2012-10-22 03:17:28 UTC
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.
Comment 2 Don 2012-12-12 04:54:32 UTC

*** This issue has been marked as a duplicate of issue 7810 ***