summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-17 12:36:26 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-17 12:36:26 +0000
commita9ad20f952fd0acd69fbcd545632791eb607e132 (patch)
treed279dca9ecd2dc6b2d3bf8190fde875ddd4a7501 /gcc
parentbb6079263790d41e6f7d551e890835526758b794 (diff)
downloadppe42-gcc-a9ad20f952fd0acd69fbcd545632791eb607e132.tar.gz
ppe42-gcc-a9ad20f952fd0acd69fbcd545632791eb607e132.zip
fix thinko in last change
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37520 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/pt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index c281636286f..3327110f949 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -7152,7 +7152,7 @@ tsubst_expr (t, args, complain, in_decl)
{
if (TREE_CODE (decl) != TYPE_DECL)
/* Make sure the type is instantiated now. */
- complete_type (type);
+ complete_type (TREE_TYPE (decl));
if (init)
DECL_INITIAL (decl) = error_mark_node;
/* By marking the declaration as instantiated, we avoid
OpenPOWER on IntegriCloud