apparently missing part of 2003-08-15 checkin
authorNathan Sidwell <nathan@gcc.gnu.org>
Mon, 18 Aug 2003 12:38:04 +0000 (12:38 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 18 Aug 2003 12:38:04 +0000 (12:38 +0000)
apparently missing part of 2003-08-15 checkin
* decl.c (make_typename_type): Use my_friendly_assert.

From-SVN: r70539

gcc/cp/decl.c

index 0619147f29c97aa07af7c2c6d4741deddb8cd2a0..5593796773c7f6ab3f1682efa54ca00a14338d55 100644 (file)
@@ -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