aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2005-06-22 22:47:26 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2005-06-22 22:47:26 +0000
commite4227c0fc52fbf119a141e0b852cba6d34878327 (patch)
treee0dbcc4e820e51d544f68a5a04c4bd6cadca97a0
parentbd83e6142dc74cf26dca197f913bc38fe7b16b3a (diff)
downloadgcc-e4227c0fc52fbf119a141e0b852cba6d34878327.zip
gcc-e4227c0fc52fbf119a141e0b852cba6d34878327.tar.gz
gcc-e4227c0fc52fbf119a141e0b852cba6d34878327.tar.bz2
* pt.c (register_specialization): Remove superfluous assertion.
From-SVN: r101253
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/pt.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 7fbbef0b..d6fc512 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2005-06-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ * pt.c (register_specialization): Remove superfluous assertion.
+
2005-06-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* call.c (convert_like_real): Add format attribute.
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index e811201..4dbec6d 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -1139,11 +1139,6 @@ register_specialization (tree spec, tree tmpl, tree args)
instantiation unless and until it is actually needed. */
return spec;
- /* There should be as many levels of arguments as there are
- levels of parameters. */
- gcc_assert (TMPL_ARGS_DEPTH (args)
- == TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (tmpl)));
-
fn = retrieve_specialization (tmpl, args,
/*class_specializations_p=*/false);
/* We can sometimes try to re-register a specialization that we've