contrib/gcc/cp/typeck.c
/* Like c_common_truthvalue_conversion, but handle pointer-to-member
   constants, where a null value is represented by an INTEGER_CST of
   -1.  */
Like c_common_truthvalue_conversion, but handle pointer-to-member
constants, where a null value is represented by an INTEGER_CST of
1.
Like c_common_truthvalue_conversion but handle pointer - to - member constants where a null value is represented by an INTEGER_CST of 1 .
tree
cp_truthvalue_conversion (tree expr)
{
  tree type = TREE_TYPE (expr);
  if (TYPE_PTRMEM_P (type))
    return build_binary_op (NE_EXPR, expr, integer_zero_node, 1);
  else
    return c_common_truthvalue_conversion (expr);
}
tree cp_truthvalue_conversion ( tree expr ) { tree type = TREE_TYPE ( expr ) ; if ( TYPE_PTRMEM_P ( type ) ) return build_binary_op ( NE_EXPR , expr , integer_zero_node , 1 ) ; else return c_common_truthvalue_conversion ( expr ) ; }
Like c_common_truthvalue_conversion, but handle pointer-to-member
constants, where a null value is represented by an INTEGER_CST of
1.
Like c_common_truthvalue_conversion but handle pointer - to - member constants where a null value is represented by an INTEGER_CST of 1 .