Comment 2 for bug 769601

Revision history for this message
In , Gcc-bugzilla (gcc-bugzilla) wrote :

The assertion in the following testcase should /not/ fail, but does:

  #define _GLIBCXX_DEBUG
  #define _GLIBCXX_DEBUG_PEDANTIC

  #include <vector>
  #include <cassert>

  int main()
  {
    std::vector<int> v;
    v.resize(10);
    assert(v.size() <= v.capacity());
  }