Do not copy a vector to check its entries.

Revealed by a rather cryptic gcc-15 warning on Debian.

Merge request reports

Loading