[Bug tree-optimization/123528] [16 Regression] ICE: tree check: expected none of vector_type, have vector_type in build_int_cst, at tree.cc:1651 at -O2

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 11 08:39:51 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123528

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu.org
   Last reconfirmed|                            |2026-01-11
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I suspect it has been latent since r15-4772-ge8c3d0f7c19f50.

GCC 15 produced:
```

  _6 = (int) _5;
  _8 = (int) _7;
  _22 = _2 - _6;
  _23 = -_8;
  _14 = _22 | _23;
  _13 = _14 != 0;
```

While 16 has:
```
  _6 = (int) _5;
  _8 = _2 != _6;
  _9 = _7 != 0;
  _10 = _8 | _9;
```


More information about the Gcc-bugs mailing list