diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1997-12-15 20:34:29 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1997-12-15 15:34:29 -0500 |
commit | 4bfc4dda74870b24309f9bee27cb7e0d8c160340 (patch) | |
tree | 5733c526cb89b2c63de368ea04c8fc32f723d6cc | |
parent | 4f69985cf722dff1e447451fbc56f4182619385a (diff) | |
download | gcc-4bfc4dda74870b24309f9bee27cb7e0d8c160340.zip gcc-4bfc4dda74870b24309f9bee27cb7e0d8c160340.tar.gz gcc-4bfc4dda74870b24309f9bee27cb7e0d8c160340.tar.bz2 |
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
-rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/pt.c | 5 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0a628da..b4196fc 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 8dff4c1..0e4d6c9 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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); diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 1edd1bb..82db865 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -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). */ |