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++) patch to fix eb127.C


2000-04-20  Jason Merrill  <jason@casey.cygnus.com>

	* typeck.c (build_x_function_call): Resolve an OFFSET_REF.

Index: typeck.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/typeck.c,v
retrieving revision 1.277
diff -c -p -r1.277 typeck.c
*** typeck.c	2000/04/11 00:38:39	1.277
--- typeck.c	2000/04/20 05:23:25
*************** build_x_function_call (function, params,
*** 2574,2579 ****
--- 2574,2582 ----
  				TYPE_BINFO (type), LOOKUP_NORMAL);
      }
      
+   if (TREE_CODE (function) == OFFSET_REF)
+     function = resolve_offset_ref (function);
+ 
    if ((TREE_CODE (function) == FUNCTION_DECL
         && DECL_STATIC_FUNCTION_P (function))
        || (TREE_CODE (function) == TEMPLATE_DECL
*************** build_x_function_call (function, params,
*** 2669,2676 ****
        return build_method_call (decl, function, params,
  				NULL_TREE, LOOKUP_NORMAL);
      }
-   else if (TREE_CODE (function) == OFFSET_REF)
-     my_friendly_abort (20000406);
    else if (TREE_CODE (function) == COMPONENT_REF
  	   && type == unknown_type_node)
      {
--- 2672,2677 ----

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