CTFE data corruption. Still not filed in GH?

FeepingCreature feepingcreature at gmail.com
Thu Jun 26 07:19:40 UTC 2025


On Friday, 20 June 2025 at 03:24:31 UTC, Nicholas Wilson wrote:
> On Wednesday, 21 May 2025 at 11:25:31 UTC, kdevel wrote:
>> As I do not have a GH account, I cannot file my recent
>> observations [1]. What is the best way to post an issue
>> here in the forum, such that it gets the appropriate
>> attention? Shall I prefix the subject with "[BUG]"?
>>
>> [1] May 05
>>     CTFE and RTFE results differ (aliasing)
>>     
>> https://forum.dlang.org/post/tjipoyhsrkhztphmyrwk@forum.dlang.org
>
> Filed as https://github.com/dlang/dmd/issues/21461

Golfed it a bit:

```
int[1] foo() {
   int[1] s = [1];
   int[1] t = s;
   s[0] = 2;
   return t;
}

void main() {
   enum r = foo();
   auto s = foo();
   assert(r == s);
}
```

What a pretty bug!


More information about the Digitalmars-d mailing list