aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2007-08-06 09:18:39 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2007-08-06 09:18:39 +0000
commitae95e46e6ffa937505ef9ab86eada677e382150b (patch)
tree8b675f4ad605e4ac9cdc3b1b6c52a91d17d14d10
parent49271fc0e20670fc5a7c1588c48af8280f57763b (diff)
downloadgcc-ae95e46e6ffa937505ef9ab86eada677e382150b.zip
gcc-ae95e46e6ffa937505ef9ab86eada677e382150b.tar.gz
gcc-ae95e46e6ffa937505ef9ab86eada677e382150b.tar.bz2
re PR c++/19532 (cp/pt.c mentions a function that has been removed.)
2007-08-06 Paolo Carlini <pcarlini@suse.de> PR c++/19532 * pt.c (template_class_depth): Fix comment; change return type to bool. From-SVN: r127238
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/pt.c10
2 files changed, 11 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index c14a911..468612d 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2007-08-06 Paolo Carlini <pcarlini@suse.de>
+
+ PR c++/19532
+ * pt.c (template_class_depth): Fix comment; change return type
+ to bool.
+
2007-08-05 Volker Reichelt <v.reichelt@netcologne.de>
Revert:
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index f1aaa2b..e4f56d8 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -126,7 +126,7 @@ static int for_each_template_parm (tree, tree_fn_t, void*,
struct pointer_set_t*);
static tree expand_template_argument_pack (tree);
static tree build_template_parm_index (int, int, int, tree, tree);
-static int inline_needs_template_parms (tree);
+static bool inline_needs_template_parms (tree);
static void push_inline_template_parms_recursive (tree, int);
static tree retrieve_local_specialization (tree);
static void register_local_specialization (tree, tree);
@@ -308,14 +308,14 @@ template_class_depth (tree type)
return depth;
}
-/* Returns 1 if processing DECL as part of do_pending_inlines
- needs us to push template parms. */
+/* Subroutine of maybe_begin_member_template_processing.
+ Returns true if processing DECL needs us to push template parms. */
-static int
+static bool
inline_needs_template_parms (tree decl)
{
if (! DECL_TEMPLATE_INFO (decl))
- return 0;
+ return false;
return (TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (most_general_template (decl)))
> (processing_template_decl + DECL_TEMPLATE_SPECIALIZATION (decl)));