[Bug libstdc++/51142] [C++0x] map::erase(key) doesn't compile with -D_GLIBCXX_DEBUG.

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 15 17:02:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51142

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-11-15 16:36:30 UTC ---
reduced:

#include <debug/map>

struct X { X(...); };
bool operator<(X,X);

typedef __gnu_debug::map< X, unsigned > M;

int main()
{
    M m;
    m.erase( X() );
}



More information about the Gcc-bugs mailing list