diff options
author | Mark Mitchell <mark@markmitchell.com> | 1999-02-01 17:25:51 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-02-01 17:25:51 +0000 |
commit | 5326f06d7f73eae07a3c8825873f7a2358dfa0e2 (patch) | |
tree | 308c8cc2b06d72347ff273085f88ed308474a783 /gcc/cp/pt.c | |
parent | 1328d92f8159120827a74b3488d845dc36de9d9b (diff) | |
download | gcc-5326f06d7f73eae07a3c8825873f7a2358dfa0e2.zip gcc-5326f06d7f73eae07a3c8825873f7a2358dfa0e2.tar.gz gcc-5326f06d7f73eae07a3c8825873f7a2358dfa0e2.tar.bz2 |
pt.c (tsubst, [...]): Check TYPE_BEING_DEFINED before calling complete_type_or_else.
* pt.c (tsubst, case TYPENAME_TYPE): Check TYPE_BEING_DEFINED
before calling complete_type_or_else.
From-SVN: r24958
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 1db903d..901005b 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -6083,7 +6083,8 @@ tsubst (t, args, in_decl) But, such constructs have already been resolved by this point, so here CTX really should have complete type, unless it's a partial instantiation. */ - if (!uses_template_parms (ctx) + if (!uses_template_parms (ctx) + && !TYPE_BEING_DEFINED (ctx) && !complete_type_or_else (ctx)) return error_mark_node; |