From 76554ea3ab76d9251f935d929835e94d933ef2fb Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 6 Aug 1999 19:01:13 +0000 Subject: [PATCH] * typeck2.c (add_exception_specifier): Use complete_type. From-SVN: r28552 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/typeck2.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index aaa8ecfa2c4..88180be64b4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +1999-08-06 Jason Merrill + + * typeck2.c (add_exception_specifier): Use complete_type. + 1999-08-06 Mark Mitchell * error.c (dump_expr): Handle EXACT_DIV_EXPR. diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index ab98bea2a51..3c16102a599 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -1553,7 +1553,7 @@ add_exception_specifier (list, spec, complain) else if (TREE_CODE (core) == TEMPLATE_TYPE_PARM) ok = 1; else - ok = TYPE_SIZE (core) != NULL_TREE; + ok = TYPE_SIZE (complete_type (core)) != NULL_TREE; if (ok) {