Commit 7ad8d488 by Jason Merrill Committed by Jason Merrill

class.c (type_has_user_provided_default_constructor): Handle templates.

        * class.c (type_has_user_provided_default_constructor): Handle                                   
        templates.

From-SVN: r138142
parent 2e6dfde4
2008-07-25 Jason Merrill <jason@redhat.com>
* class.c (type_has_user_provided_default_constructor): Handle
templates.
2008-07-23 Jan Hubicka <jh@suse.cz>
* cp/decl.c (duplicate_decls): Update comment and unit-at-a-time.
......@@ -7,6 +12,9 @@
2008-07-23 Jason Merrill <jason@redhat.com>
* mangle.c (write_unqualified_name): Avoid infinite recursion when
trying to mangle a decl with no name.
Implement defaulted/deleted functions as per N2346
* cp-tree.h (struct lang_decl_flags): Add defaulted_p bitfield.
(DECL_DELETED_FN): New macro.
......
......@@ -4115,7 +4115,8 @@ type_has_user_provided_default_constructor (tree t)
for (fns = CLASSTYPE_CONSTRUCTORS (t); fns; fns = OVL_NEXT (fns))
{
tree fn = OVL_CURRENT (fns);
if (user_provided_p (fn)
if (TREE_CODE (fn) == FUNCTION_DECL
&& user_provided_p (fn)
&& (skip_artificial_parms_for (fn, DECL_ARGUMENTS (fn))
== NULL_TREE))
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment