------- Comment #3 from hjl dot tools at gmail dot com  2008-07-26 17:21 -------
I am not sure if

/* Returns true iff class T has a user-provided default constructor.  */

bool
type_has_user_provided_default_constructor (tree t)
{
  tree fns; 

  if (!TYPE_HAS_USER_CONSTRUCTOR (t)) 
    return false;

  for (fns = CLASSTYPE_CONSTRUCTORS (t); fns; fns = OVL_NEXT (fns))
    {    
      tree fn = OVL_CURRENT (fns);
      if (TREE_CODE (fn) == FUNCTION_DECL
          && user_provided_p (fn) 
          && (skip_artificial_parms_for (fn, DECL_ARGUMENTS (fn))
              == NULL_TREE))
        return true;
    }    

  return false;
}

is correct for

XObjectPtr(XObject* theXObject = 0) : m_xobjectPtr(theXObject)

There is an argument. But it has a default value. Shouldn't it match
XObjectPtr ()?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36944

Reply via email to