[Bug tree-optimization/113662] [13/14/15 Regression] Wrong code for std::sort with fancy pointer since r13-6945-g429a7a88438cc8
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 30 22:17:52 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113662
--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So I think the way offset_type is used here is incorrect.
boost::interprocess::offset_ptr<T> allocate( std::size_t n ) {
return boost::interprocess::offset_ptr<T>(a.allocate(n));
}
That stores the offset from the stack object to the allocated memory.
That is wrong.
I am suspecting there is still some oddness going on because we optimize exact
divide better now.
More information about the Gcc-bugs
mailing list