Thread overview
[Issue 22144] ICE(dcast.d): Floating point exception in castTo::CastTo::visit(Expression*) at dmd/dcast.d:1702
Jul 25, 2021
Iain Buclaw
Jul 25, 2021
Iain Buclaw
Jul 26, 2021
Iain Buclaw
Jul 26, 2021
Iain Buclaw
Jul 26, 2021
Dlang Bot
Jul 26, 2021
Dlang Bot
Jul 26, 2021
Dlang Bot
Aug 03, 2021
Dlang Bot
July 25, 2021
https://issues.dlang.org/show_bug.cgi?id=22144

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |ibuclaw@gdcproject.org

--
July 25, 2021
https://issues.dlang.org/show_bug.cgi?id=22144

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
The problem is the use of modulo by zero.

--
July 26, 2021
https://issues.dlang.org/show_bug.cgi?id=22144

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code

--
July 26, 2021
https://issues.dlang.org/show_bug.cgi?id=22144

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Simplified as:
---
void main()
{
  int[0] zarray;
  cast(int[0][])zarray;
}

--
July 26, 2021
https://issues.dlang.org/show_bug.cgi?id=22144

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw created dlang/dmd pull request #12924 "fix Issue 22144 - ICE(dcast.d):
Floating point exception in castTo::CastTo::visit(Expression*) at
dmd/dcast.d:1702" fixing this issue:

- fix Issue 22144 - ICE(dcast.d): Floating point exception in
castTo::CastTo::visit(Expression*) at dmd/dcast.d:1702

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

--
July 26, 2021
https://issues.dlang.org/show_bug.cgi?id=22144

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12924 "fix Issue 22144 - ICE(dcast.d): Floating point
exception in castTo::CastTo::visit(Expression*) at dmd/dcast.d:1702" was merged
into stable:

- fa7ce3520004bdaa92e4e3f352e6fb5090f28319 by Iain Buclaw:
  fix Issue 22144 - ICE(dcast.d): Floating point exception in
castTo::CastTo::visit(Expression*) at dmd/dcast.d:1702

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

--
July 26, 2021
https://issues.dlang.org/show_bug.cgi?id=22144

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12927 "[dmd-cxx] fix Issue 22144 - ICE(dcast.d):
Floating point exception in castTo::CastTo::visit(Expression*) at
dmd/dcast.d:1702" was merged into dmd-cxx:

- 16f2345bdf6f6acc46abfa23bba72df5f186e1bf by Iain Buclaw:
  [dmd-cxx] fix Issue 22144 - ICE(dcast.d): Floating point exception in
castTo::CastTo::visit(Expression*) at dmd/dcast.d:1702

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

--
August 03, 2021
https://issues.dlang.org/show_bug.cgi?id=22144

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12944 "Merge branch 'stable' into merge_master" was merged into master:

- d03f144b07f86ac2e65f460b9869b38acc053233 by Iain Buclaw:
  fix Issue 22144 - ICE(dcast.d): Floating point exception in
castTo::CastTo::visit(Expression*) at dmd/dcast.d:1702 (#12924)

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

--