This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/53543] New: [unordered_map] conflict with __is_convertible clang intrinsic
- From: "zeratul976 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 May 2012 17:42:48 +0000
- Subject: [Bug libstdc++/53543] New: [unordered_map] conflict with __is_convertible clang intrinsic
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53543
Bug #: 53543
Summary: [unordered_map] conflict with __is_convertible clang
intrinsic
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zeratul976@hotmail.com
The trunk implementation of unordered_map uses the following alias template at
class scope:
template<typename _Pair>
using __is_convertible = std::is_convertible<_Pair, value_type>;
Clang cannot compile this because __is_convertible is a clang intrinsic (much
like how __is_base_of is a gcc intrinsic).
I asked on the clang mailing list what can be done about this, and they
suggested:
"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."
Would it be possible to entertain this request?