[cfe-dev] clang fails to compile gcc 4.8's <unordered_map>

Sebastian Redl sebastian.redl at getdesigned.at
Thu May 31 02:15:48 PDT 2012

On 31.05.2012 05:59, Nathan Ridge wrote:
> The problem is that GCC uses the following alias template as class scope:
> template<typename _Pair>
> using __is_convertible = std::is_convertible<_Pair, value_type>;
> but __is_convertible, I am guessing, is a compiler intrinsic in clang.
> Is either gcc or clang doing something wrong, or is it just a clash of implementations?
It's a clash of implementations. We've had this before, but not with a 
new GCC version - only with old GCC versions.
> What can be done to resolve this?
Since GCC 4.8 is not yet released, and Clang versions with the 
__is_convertible intrinsic are, the best solution would be to politely 
ask the libstdc++ maintainers to change this name.


More information about the cfe-dev mailing list