Thread overview
[Issue 20041] CTFE incorrect result with __vector
Dec 24, 2020
Walter Bright
Dec 27, 2020
Dlang Bot
Dec 28, 2020
Dlang Bot
July 10, 2019
https://issues.dlang.org/show_bug.cgi?id=20041

thomas.bockman@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |critical

--
December 24, 2020
https://issues.dlang.org/show_bug.cgi?id=20041

thomas.bockman@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE, SIMD

--
December 24, 2020
https://issues.dlang.org/show_bug.cgi?id=20041

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
A simpler example:

  import core.stdc.stdio;
  import core.simd;

  immutable(float4) foo() {
    float4 raw;
    raw[0] = 1;
    return cast(immutable)raw;
  }

  void main() {
    static immutable float4 v = foo();

    foreach(d; 0 .. 4)
        printf("%g ", v[d]);
    printf("\n");
  }

--
December 27, 2020
https://issues.dlang.org/show_bug.cgi?id=20041

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #12057 "fix Issue 20041 - CTFE incorrect result with __vector" fixing this issue:

- fix Issue 20041 - CTFE incorrect result with __vector

https://github.com/dlang/dmd/pull/12057

--
December 28, 2020
https://issues.dlang.org/show_bug.cgi?id=20041

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12057 "fix Issue 20041 - CTFE incorrect result with __vector" was merged into master:

- 716b3e0df17f568f31ffb264390d96ee28485db9 by Walter Bright:
  fix Issue 20041 - CTFE incorrect result with __vector

https://github.com/dlang/dmd/pull/12057

--