Bug 8805 – corrupt data at compile time.

Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-11T15:25:00Z
Last change time
2012-12-12T04:54:32Z
Keywords
wrong-code
Assigned to
nobody
Creator
iteronvexor

Comments

Comment #0 by iteronvexor — 2012-10-11T15:25:40Z
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 by clugdbug — 2012-10-22T03:17:28Z
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 by clugdbug — 2012-12-12T04:54:32Z
*** This issue has been marked as a duplicate of issue 7810 ***