On Wed, Nov 11, 2015 at 12:18 PM, Martin Liška <mli...@suse.cz> wrote: > Hi. > > There's a fix for fallout of r230027. > > Patch can bootstrap and survives regression tests on x86_64-linux-gnu.
Hmm, but only the new elements are zeroed so this still is different from previous behavior. Note that the previous .create (...) doesn't initialize the elements either (well, it's not supposed to ...). I _think_ the bug is that you do safe_grow and use length while the previous code just added enough reserve (but not actual elements!). Thus the fix would be to do point_freq_vec.truncate (0); point_freq_vec.reserve_exact (new_length); Richard. > Ready for trunk? > Thanks, > Martin