Thread overview
[Issue 22082] static float array comparison not available in betterC
Sep 13, 2021
ryuukk_
Sep 14, 2021
ryuukk_
Nov 19, 2021
Dlang Bot
Dec 17, 2022
Iain Buclaw
Jan 15, 2023
Walter Bright
September 13, 2021
https://issues.dlang.org/show_bug.cgi?id=22082

ryuukk_ <ryuukk.dev@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ryuukk.dev@gmail.com

--- Comment #1 from ryuukk_ <ryuukk.dev@gmail.com> ---
I tried the workaround but it didn't work for me

https://bpa.st/raw/MVJQ

--
September 14, 2021
https://issues.dlang.org/show_bug.cgi?id=22082

--- Comment #2 from ryuukk_ <ryuukk.dev@gmail.com> ---
```
struct Test
{
    float[32] data;
}

extern (C) int main()
{
    Test b;
    Test c;

    bool r = b == c;

    return 0;
}
```


A struct that contains a float array also doesn't work

--
November 19, 2021
https://issues.dlang.org/show_bug.cgi?id=22082

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ryuukk created dlang/dmd pull request #13320 "Fix Issue 22082 - Static float array comparison now lowered to __equals" fixing this issue:

- Fix Issue 22082 - Static float array comparison now lowered to __equals

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

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22082

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
January 15, 2023
https://issues.dlang.org/show_bug.cgi?id=22082

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> ---
The current error generated is:

Error: expression `a[] == cast(float[])b` uses the GC and cannot be used with
switch `-betterC`

--