[cfe-dev] libc++'s unorderd_map bug?
Jonathan Sauer
jonathan.sauer at gmx.de
Mon Jun 13 23:51:08 PDT 2011
Hello,
> Both calng++ and g++ with libc++ fail to compile the attached piece of code,
> $ clang++ -std=c++0x -stdlib=libc++ unordered_map.cpp
>
> In file included from ./unordered_map.cpp:1:
> /usr/include/c++/v1/string:1031:35: error: no type named 'char_type' in
> 'Parameter'
> typedef typename traits_type::char_type value_type;
> ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
>
> (lots of error messages)
Looks like PR10087: <http://llvm.org/bugs/show_bug.cgi?id=10087>
Try the workaround posted there by switching the includes for string and map/unordered_map.
Or revert to an older version of libc++, if this is possible for you. I'm using r131852,
which does not contain this bug.
Jonathan
More information about the cfe-dev
mailing list