Re: [google gcc-4_7, integration] Add more lightweight checks for dangling vectors

2013-01-22 Thread Diego Novillo
On Tue, Jan 22, 2013 at 12:21 AM, Paul Pluzhnikov ppluzhni...@google.com wrote: This patch sets destructed vector into an invalid state, such that subsequent calls to begin(), end(), size(), etc. all throw logic_error. Google ref b/7248326 Ok for google/gcc-4_7 and google/integration? OK.

[google gcc-4_7, integration] Add more lightweight checks for dangling vectors

2013-01-21 Thread Paul Pluzhnikov
This patch sets destructed vector into an invalid state, such that subsequent calls to begin(), end(), size(), etc. all throw logic_error. Google ref b/7248326 Ok for google/gcc-4_7 and google/integration? Thanks, -- Paul Pluzhnikov Index: libstdc++-v3/include/bits/stl_vector.h