aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/typeck.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2000-06-15 17:24:39 -0400
committerJason Merrill <jason@gcc.gnu.org>2000-06-15 17:24:39 -0400
commit297a5329dca4f22150ec201d48b8de8a730f6447 (patch)
tree8ef4fe73525824ae88ccfba0772d1ad4632e748a /gcc/cp/typeck.c
parentf5e6b7bc9e27420b063970b49bb62bcea1bff43d (diff)
downloadgcc-297a5329dca4f22150ec201d48b8de8a730f6447.zip
gcc-297a5329dca4f22150ec201d48b8de8a730f6447.tar.gz
gcc-297a5329dca4f22150ec201d48b8de8a730f6447.tar.bz2
tree.c (count_trees): New debugging function.
* tree.c (count_trees): New debugging function. * typeck.c (build_x_function_call): Use DECL_FUNCTION_TEMPLATE_P. * init.c (build_member_call): Pull out the name of a DECL. * Makefile.in (semantics.o, pt.o): Depend on TIMEVAR_H. * semantics.c (expand_body): Push to TV_INTEGRATION here. * optimize.c (optimize_function): Not here. * pt.c (instantiate_decl): Push to TV_PARSE. From-SVN: r34568
Diffstat (limited to 'gcc/cp/typeck.c')
-rw-r--r--gcc/cp/typeck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index 28ac0f3..b167c7e 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -2578,7 +2578,7 @@ build_x_function_call (function, params, decl)
if ((TREE_CODE (function) == FUNCTION_DECL
&& DECL_STATIC_FUNCTION_P (function))
- || (TREE_CODE (function) == TEMPLATE_DECL
+ || (DECL_FUNCTION_TEMPLATE_P (function)
&& DECL_STATIC_FUNCTION_P (DECL_TEMPLATE_RESULT (function))))
return build_member_call (DECL_CONTEXT (function),
template_id