diff options
author | Nathan Sidwell <nathan@gcc.gnu.org> | 2003-08-18 12:38:04 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2003-08-18 12:38:04 +0000 |
commit | 5d8725642675ddbb94dc26e8dd03b67369d47d22 (patch) | |
tree | 41c72720449a2a479bed1759721ad64c7ff38015 | |
parent | a4ce4cf7db40377caffc1ccb27fe1e163ca6b113 (diff) | |
download | gcc-5d8725642675ddbb94dc26e8dd03b67369d47d22.zip gcc-5d8725642675ddbb94dc26e8dd03b67369d47d22.tar.gz gcc-5d8725642675ddbb94dc26e8dd03b67369d47d22.tar.bz2 |
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
-rw-r--r-- | gcc/cp/decl.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 |