[Bug libstdc++/56609] [C++11] Several type traits give incorrect results for std::nullptr_t
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 13 09:47:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56609
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-03-13
AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot
|gnu.org |com
Ever Confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-03-13 09:46:50 UTC ---
Seems straightforward enough to be fixable in 4.8.0 too. Does this patchlet
cover all the issues you can see?
Index: type_traits
===================================================================
--- type_traits (revision 196609)
+++ type_traits (working copy)
@@ -444,7 +444,7 @@
/// is_fundamental
template<typename _Tp>
struct is_fundamental
- : public __or_<is_arithmetic<_Tp>, is_void<_Tp>>::type
+ : public __or_<is_arithmetic<_Tp>, is_void<_Tp>,
__is_nullptr_t<_Tp>>::type
{ };
/// is_object
More information about the Gcc-bugs
mailing list