[cfe-dev] Checked STL
Adrien Chauve
adrien.chauve at gmail.com
Fri May 20 12:25:31 PDT 2011
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
On Fri, May 20, 2011 at 20:36, Adrien Chauve <adrien.chauve at gmail.com>wrote:
> 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
>
>
> On Fri, May 20, 2011 at 17:54, Douglas Gregor <dgregor at apple.com> wrote:
>
>>
>> On May 20, 2011, at 12:26 AM, Adrien Chauve wrote:
>>
>> > 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".
>>
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110520/63de95bb/attachment.html>
More information about the cfe-dev
mailing list