+Mon Dec 15 12:22:04 1997 Jason Merrill <jason@yorick.cygnus.com>
+
+ * typeck.c (build_function_call_real): Remove "inline called before
+ definition" pedwarn.
+
+ * pt.c (coerce_template_parms): Use maybe_fold_nontype_arg.
+
Sun Dec 14 22:34:20 1997 Jason Merrill <jason@yorick.cygnus.com>
* cvt.c (cp_convert_to_pointer): Fix base conversion of pm's.
{
tree t = tsubst (TREE_TYPE (parm), vec,
TREE_VEC_LENGTH (vec), in_decl);
- if (processing_template_decl &&
- (uses_template_parms (arg) || uses_template_parms (t)))
- val = arg;
+ if (processing_template_decl)
+ val = maybe_fold_nontype_arg (arg);
else
val = digest_init (t, arg, (tree *) 0);
pedwarn ("ANSI C++ forbids calling `main' from within program");
}
- if (pedantic && DECL_THIS_INLINE (function) && ! DECL_INITIAL (function)
- && ! DECL_ARTIFICIAL (function)
- && ! DECL_PENDING_INLINE_INFO (function))
- cp_pedwarn ("inline function `%#D' called before definition",
- function);
-
/* Differs from default_conversion by not setting TREE_ADDRESSABLE
(because calling an inline function does not mean the function
needs to be separately compiled). */