Hi,
Is it possible to use a checked STL with clang? Defining _GLIBCXX_DEBUG (as with gcc) generates a lot of errors such as “inline namespace cannot be reopenned as non-inline”.
Thanks,
Adrien
Hi,
Is it possible to use a checked STL with clang? Defining _GLIBCXX_DEBUG (as with gcc) generates a lot of errors such as “inline namespace cannot be reopenned as non-inline”.
Thanks,
Adrien
That's a bug in GCC's checked STL implementation. However, I just committed a workaround into Clang that might allow GCC's checked STL to work; please try Clang revision 131732 or newer.
- Doug
Thanks!
I’ve just tested and indeed the problem of inline namespace seems fixed, but I ran into another (still a bug of gcc’s checked STL I suppose):
In file included from /usr/include/c++/4.5/map:64:
In file included from /usr/include/c++/4.5/debug/map:34:
/usr/include/c++/4.5/debug/map.h:73:20: error: dependent using declaration resolved to type without ‘typename’
using _Base::value_compare;
^
It’s a pity as a checked STL is so useful to detect early bugs.
Thanks again,
Adrien
Very good news, as a matter of fact it works like a charm with gcc’s STL 4.6 (tested on archlinux 64 bits).
Thanks!
Adrien