https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94015
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2020-03-03 Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Target Milestone|--- |10.0 Ever confirmed|0 |1 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Thanks for the testcase. As I said in PR93982, the real fix is to have two different functions where one will be about the counting of non-zero bytes within the expression itself and another one about counting of non-zero bytes pointed to by the expression. Mixing apples and oranges in the same function is asking for such issues like this.