https://issues.dlang.org/show_bug.cgi?id=20041

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Walter Bright <[email protected]> ---
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");
  }

--

Reply via email to