[PATCH] eliminate calls to build_constructor_from_list in ObjC FE

Nathan Froyd froydnj@codesourcery.com
Tue May 25 15:47:00 GMT 2010


On Tue, May 25, 2010 at 04:27:59PM +0100, IainS wrote:
> /GCC/gcc-live-trunk/gcc/objc/objc-act.c:2089:8: error: passing argument 1 
> of ‘tree_check_failed’ from incompatible pointer type [-Werror]
> /GCC/gcc-live-trunk/gcc/tree.h:879:13: note: expected ‘const_tree’ but  
> argument is of type ‘struct VEC_constructor_elt_gc * const’
> /GCC/gcc-live-trunk/gcc/objc/objc-act.c:2089:8: error:  
> ‘VEC_constructor_elt_gc’ has no member named ‘list’
> cc1: all warnings being treated as errors

Pffft, weren't we getting rid of ObjC++ anyway? :)

IIUC the code correctly, something like:

  if (!VEC_index (constructor_elt, elts, 0)->index)
    TREE_TYPE (constructor) = init_list_type_node;

should work--at least to fix the compilation problem.

-Nathan



More information about the Gcc-patches mailing list