This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

(C++) EH specs tweak


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]