"Incorrect range loop construct" build failure(s) — clang 11.0.0

PackageVersionSupposed error messageFull log Bug report
cataclysm-dda 0.E-1-1src/advanced_inv.cpp:855:38: error: loop variable 'elem' of type 'const advanced_inv_listitem' creates a copy from type 'const advanced_inv_listitem' [-Werror,-Wrange-loop-construct] Log
cbmc 5.12-5./language_file.h:87:54: error: loop variable 'method' has type 'const std::pair &' (aka 'const pair &') but is initialized with type 'std::pair' resulting in a copy [-Werror,-Wrange-loop-construct] Log
sight 20.0.0-2Graph.cpp:368:39: error: loop variable 'connection' has type 'const ConnectionContainerElt &' (aka 'const pair, pair, shared_ptr > > &') but is initialized with type 'const std::pair, std::pair, std::shared_ptr > >' resulting in a copy [-Werror,-Wrange-loop-construct] Log
wlcs 1.1.0+dfsg-7xfail_supporting_test_listener.cpp:173:25: error: loop variable 'name' of type 'const std::__cxx11::basic_string' creates a copy from type 'const std::__cxx11::basic_string' [-Werror,-Wrange-loop-construct] Log

4 errors