decl.c (make_typename_type): Use my_friendly_assert.
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 15 Aug 2003 10:23:46 +0000 (10:23 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 15 Aug 2003 10:23:46 +0000 (10:23 +0000)
* decl.c (make_typename_type): Use my_friendly_assert.
* pt.c (tsubst_aggr_type): Rearrange context substitution.

From-SVN: r70475

gcc/cp/ChangeLog
gcc/cp/pt.c

index e7e0eddda9de5bcaeb26d6d4c6155912402afc74..8f188b659b317808c4e99d44103734d607d75f5e 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-15  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * decl.c (make_typename_type): Use my_friendly_assert.
+       * pt.c (tsubst_aggr_type): Rearrange context substitution.
+
 Thu Aug 14 12:19:25 CEST 2003  Jan Hubicka  <jh@suse.cz>
 
        * method.c (use_thunk): Expand body directly.
index edb43d98a81b73ca74ee7960ce95ad786a821e98..43ecde0441578189853cc7e8b6e600b01c3678ea 100644 (file)
@@ -5565,12 +5565,10 @@ tsubst_aggr_type (tree t,
 
          /* First, determine the context for the type we are looking
             up.  */
-         if (TYPE_CONTEXT (t) != NULL_TREE)
-           context = tsubst_aggr_type (TYPE_CONTEXT (t), args,
-                                       complain,
+         context = TYPE_CONTEXT (t);
+         if (context)
+           context = tsubst_aggr_type (context, args, complain,
                                        in_decl, /*entering_scope=*/1);
-         else
-           context = NULL_TREE;
 
          /* Then, figure out what arguments are appropriate for the
             type we are trying to find.  For example, given: