From 5d8725642675ddbb94dc26e8dd03b67369d47d22 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Mon, 18 Aug 2003 12:38:04 +0000 Subject: apparently missing part of 2003-08-15 checkin apparently missing part of 2003-08-15 checkin * decl.c (make_typename_type): Use my_friendly_assert. From-SVN: r70539 --- gcc/cp/decl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/cp') diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 0619147..5593796 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -5492,9 +5492,8 @@ make_typename_type (tree context, tree name, tsubst_flags_t complain) error ("`%D' used without template parameters", name); return error_mark_node; } - if (TREE_CODE (name) != IDENTIFIER_NODE) - abort (); - + my_friendly_assert (TREE_CODE (name) == IDENTIFIER_NODE, 20030802); + if (TREE_CODE (context) == NAMESPACE_DECL) { /* We can get here from typename_sub0 in the explicit_template_type -- cgit v1.1