This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36944] [4.4 Regression]: Revision 138123 breaks C++
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2008 17:21:58 -0000
- Subject: [Bug c++/36944] [4.4 Regression]: Revision 138123 breaks C++
- References: <bug-36944-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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