* class.c (type_has_user_provided_default_constructor): Handle
templates.
From-SVN: r138142
+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.
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.
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;