From e4227c0fc52fbf119a141e0b852cba6d34878327 Mon Sep 17 00:00:00 2001 From: Volker Reichelt Date: Wed, 22 Jun 2005 22:47:26 +0000 Subject: [PATCH] * pt.c (register_specialization): Remove superfluous assertion. From-SVN: r101253 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/pt.c | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7fbbef0b2ce..d6fc5124814 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2005-06-23 Volker Reichelt + + * pt.c (register_specialization): Remove superfluous assertion. + 2005-06-18 Kaveh R. Ghazi * call.c (convert_like_real): Add format attribute. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index e8112018723..4dbec6dcfeb 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