re PR bootstrap/40221 (Powerpc bootstrap is broken in building libstdc++)

2009-05-21  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/40221
	* include/tr1_impl/functional: Add explicit cast.

From-SVN: r147794
This commit is contained in:
Benjamin Kosnik 2009-05-22 07:19:37 +00:00 committed by Benjamin Kosnik
parent eebc710d2e
commit e4c29fbc9e
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,10 @@
2009-05-21 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/40221
* include/tr1_impl/functional: Add explicit cast.
2009-05-21 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/40094
Revert:
2009-05-07 Paolo Carlini <paolo.carlini@oracle.com>

View File

@ -1989,7 +1989,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
function(const function& __x)
: _Function_base()
{
if (__x)
if (static_cast<bool>(__x))
{
_M_invoker = __x._M_invoker;
_M_manager = __x._M_manager;