summaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-15 10:23:46 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-15 10:23:46 +0000
commit7cbbfe66968979c45b730e7710efcf85b178c7dc (patch)
treee9ed880552861fd867e317afb4de8e4f30798ad9 /gcc/cp/pt.c
parent447384b44277d8d9a55a094d42c34e889eb9b68e (diff)
downloadgcc-7cbbfe66968979c45b730e7710efcf85b178c7dc.tar.gz
* decl.c (make_typename_type): Use my_friendly_assert.
* pt.c (tsubst_aggr_type): Rearrange context substitution. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70475 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index edb43d98a81..43ecde04415 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -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: