+Wed May 17 01:43:58 1995 Jason Merrill <jason@phydeaux.cygnus.com>
+
+ * class.c (finish_struct): Don't complain about a class with no
+ user-defined constructors but with a member that has no default
+ constructor, as this is OK for aggregates.
+
+ * expr.c (cplus_expand_expr, NEW_EXPR): If this is an explicit
+ constructor call, mark slot addressable.
+
Tue May 16 18:37:51 1995 Douglas Rupp (drupp@cs.washington.edu)
* g++.c: Changed WINNT to _WIN32.
&& ! TYPE_HAS_DEFAULT_CONSTRUCTOR (type))
{
cant_have_default_ctor = 1;
+#if 0
+ /* This is wrong for aggregates. */
if (! TYPE_HAS_CONSTRUCTOR (t))
{
if (DECL_NAME (x))
cp_pedwarn_at ("in class without a constructor",
x);
}
+#endif
}
}
if (DECL_INITIAL (x) != NULL_TREE)
type = TYPE_POINTER_TO (type);
/* Don't clobber a value that might be part of a default
parameter value. */
+ mark_addressable (slot);
if (TREE_PERMANENT (args))
args = tree_cons (0, build1 (ADDR_EXPR, type, slot),
TREE_CHAIN (args));