Thread overview
[Issue 17146] Internal error: tk.c 266 with -O -inline
Feb 05, 2017
Sönke Ludwig
Mar 02, 2019
Basile-z
Jan 31, 2020
Sönke Ludwig
Mar 21, 2020
Basile-z
Apr 08
Dlang Bot
Apr 08
Dlang Bot
February 05, 2017
https://issues.dlang.org/show_bug.cgi?id=17146

Sönke Ludwig <sludwig@outerproduct.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, ice-on-valid-code

--- Comment #1 from Sönke Ludwig <sludwig@outerproduct.org> ---
Appears on at least DMD 2.070.0 up to DMD 2.073.0.

--
March 02, 2019
https://issues.dlang.org/show_bug.cgi?id=17146

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com

--- Comment #2 from Basile-z <b2.temp@gmx.com> ---
Nowadays it's

dmd: dmd/backend/dvec.d:299: Assertion `v && (b < vec_numbits(v))' failed.

--
January 31, 2020
https://issues.dlang.org/show_bug.cgi?id=17146

--- Comment #3 from Sönke Ludwig <sludwig@outerproduct.org> ---
Appears to have been fixed in 2.084.0

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=17146

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--
March 21
https://issues.dlang.org/show_bug.cgi?id=17146

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--
April 08
https://issues.dlang.org/show_bug.cgi?id=17146

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> ---
The bug is still there. It "disappeared" for a time because asserts were turned off in the backend, obviously that was a bad idea.

--
April 08
https://issues.dlang.org/show_bug.cgi?id=17146

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #5 from Walter Bright <bugzilla@digitalmars.com> ---
Simpler test case:

 struct S { int[] a; int b; }

 void foo() {
    S[] s;
    if (s[$-1] == S.init) {}
 }

 void bar() { foo(); }

--
April 08
https://issues.dlang.org/show_bug.cgi?id=17146

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

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

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #12403 "fix Issue 17146 - Internal error: tk.c 266 with -O -inline" fixing this issue:

- fix Issue 17146 - Internal error: tk.c 266 with -O -inline

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

--
April 08
https://issues.dlang.org/show_bug.cgi?id=17146

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

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

--- Comment #7 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12403 "fix Issue 17146 - Internal error: tk.c 266 with -O -inline" was merged into master:

- 19c8234b8e3e81584824e50149729965e4eb4286 by Walter Bright:
  fix Issue 17146 - Internal error: tk.c 266 with -O -inline

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

--