mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 09:19:01 +08:00
typeck.c (build_function_call_real): Remove "inline called before definition" pedwarn.
* typeck.c (build_function_call_real): Remove "inline called before definition" pedwarn. * pt.c (coerce_template_parms): Use maybe_fold_nontype_arg. From-SVN: r17109
This commit is contained in:
parent
4f69985cf7
commit
4bfc4dda74
@ -1,3 +1,10 @@
|
||||
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.
|
||||
|
@ -1075,9 +1075,8 @@ coerce_template_parms (parms, arglist, in_decl)
|
||||
{
|
||||
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);
|
||||
|
||||
|
@ -2645,12 +2645,6 @@ build_function_call_real (function, params, require_complete, flags)
|
||||
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). */
|
||||
|
Loading…
Reference in New Issue
Block a user