Commit 76554ea3 by Jason Merrill Committed by Jason Merrill

* typeck2.c (add_exception_specifier): Use complete_type.

From-SVN: r28552
parent 8402fd4f
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> 1999-08-06 Mark Mitchell <mark@codesourcery.com>
* error.c (dump_expr): Handle EXACT_DIV_EXPR. * error.c (dump_expr): Handle EXACT_DIV_EXPR.
......
...@@ -1553,7 +1553,7 @@ add_exception_specifier (list, spec, complain) ...@@ -1553,7 +1553,7 @@ add_exception_specifier (list, spec, complain)
else if (TREE_CODE (core) == TEMPLATE_TYPE_PARM) else if (TREE_CODE (core) == TEMPLATE_TYPE_PARM)
ok = 1; ok = 1;
else else
ok = TYPE_SIZE (core) != NULL_TREE; ok = TYPE_SIZE (complete_type (core)) != NULL_TREE;
if (ok) if (ok)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment