This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
(C++) EH specs tweak
- To: gcc-patches at gcc dot gnu dot org
- Subject: (C++) EH specs tweak
- From: Jason Merrill <jason at cygnus dot com>
- Date: Fri, 6 Aug 1999 12:00:51 -0700
- CC: nathan at acm dot org
Fixes g++.pt/ehspec1.C.
1999-08-06 Jason Merrill <jason@yorick.cygnus.com>
* typeck2.c (add_exception_specifier): Use complete_type.
Index: typeck2.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/typeck2.c,v
retrieving revision 1.60
diff -c -p -r1.60 typeck2.c
*** typeck2.c 1999/08/05 09:20:18 1.60
--- typeck2.c 1999/08/06 18:59:57
*************** add_exception_specifier (list, spec, com
*** 1553,1559 ****
else if (TREE_CODE (core) == TEMPLATE_TYPE_PARM)
ok = 1;
else
! ok = TYPE_SIZE (core) != NULL_TREE;
if (ok)
{
--- 1553,1559 ----
else if (TREE_CODE (core) == TEMPLATE_TYPE_PARM)
ok = 1;
else
! ok = TYPE_SIZE (complete_type (core)) != NULL_TREE;
if (ok)
{