Status of the libc++ debug mode

Hi,

Using the clang in xcode 5.1.1, I tried the following code:

#include <algorithm>
#include <vector>

void do_copy(std::vector<int>::iterator i)
{ std::copy(i,i,i); }

With libc++'s debug mode (-D_LIBCPP_DEBUG). The result was a fairly
huge compile-time error.

This seems like a very simple test case to be broken, which suggests
to me that possibly I am using the test wrongly, or the debug mode is
non-functional.

What is the current status, and is the debug mode in use by anyone,
and maintained? I am happy to look at fixing this bug, but first I
wanted to check what the current status was.

Chris

My understanding is that this work was never completed and it's
probably broken/incomplete.

My understanding is that this work was never completed and it’s
probably broken/incomplete.

That is correct.
It’s on my list of things to fix/implement, but it’s not something that I will get to anytime soon.

— Marshall

P.S. This is the second question about _LIBCPP_DEBUG I’ve received in the last week, so I’ve updated http://libcxx.llvm.org/debug_mode.html with a note about that.