You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some investigation this now looks it might be a compiler bug i.e. a false positive.
The return time of the lookup function is std::vector<PolymorphicCaster const *> const & and the value is a reference to a vector stored in the map StaticObject<PolymorphicCasters>::getInstance().map which is not temporary.
There are a couple of other projects that reported similar compiler regressions on GCC 13, for example 107532.
GCC 13.2 finds a possible dangling reference in
include/cereal/details/polymorphic_impl.hpp
line 204, 218, 231:The text was updated successfully, but these errors were encountered: