* typeck2.c (add_exception_specifier): Use complete_type.

From-SVN: r28552
This commit is contained in:
Jason Merrill 1999-08-06 19:01:13 +00:00 committed by Jason Merrill
parent 8402fd4f4c
commit 76554ea3ab
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
1999-08-06 Jason Merrill <jason@yorick.cygnus.com>
* typeck2.c (add_exception_specifier): Use complete_type.
1999-08-06 Mark Mitchell <mark@codesourcery.com>
* error.c (dump_expr): Handle EXACT_DIV_EXPR.

View File

@ -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)
{