https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106181
--- Comment #1 from Tim Lange <tlange at gcc dot gnu.org> --- Can confirm. I've missed that I might receive non-ints from get_capacity. I'm working on a fix right now.
tlange at gcc dot gnu.org via Gcc-bugs Mon, 04 Jul 2022 04:18:59 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106181
--- Comment #1 from Tim Lange <tlange at gcc dot gnu.org> --- Can confirm. I've missed that I might receive non-ints from get_capacity. I'm working on a fix right now.