]> gcc.gnu.org Git - gcc.git/commitdiff
* typeck2.c (add_exception_specifier): Use complete_type.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 6 Aug 1999 19:01:13 +0000 (19:01 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 6 Aug 1999 19:01:13 +0000 (15:01 -0400)
From-SVN: r28552

gcc/cp/ChangeLog
gcc/cp/typeck2.c

index aaa8ecfa2c494a7ecb294b0eb5f1dd92620b8b0f..88180be64b47c05014b46de22c140d9ad11adaf7 100644 (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.
index ab98bea2a511d280c86d1b70d24ee48e7e37973e..3c16102a5993229ad9ecbe2786742351efa45057 100644 (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)
     {
This page took 0.083506 seconds and 5 git commands to generate.