This is the mail archive of the
mailing list for the GCC project.
Re: VEC re-write [patch 01/25]
On Sun, Nov 18, 2012 at 8:03 PM, Diego Novillo <email@example.com> wrote:
>> And now bootstrap fails on AIX using GCC 4.6.3 with the error:
>> /nasfarm/dje/src/src/gcc/c-family/c-lex.c: In function 'c_fileinfo*
>> get_fileinfo(const char*)':
>> /nasfarm/dje/src/src/gcc/c-family/c-lex.c:107:39: error: overloaded
>> function with no contextual type information
>> which is
>> file_info_tree = splay_tree_new ((splay_tree_compare_fn) strcmp,
>> (splay_tree_delete_value_fn) free);
> Odd. The patch did not touch c-lex.c.
I opened PR 55384 to track this
The problem is AIX stdlib.h defines
#define vec_free free
defines two functions named vec_free()
With the VEC changes, these now are renamed "free" and lead to
ambiguous name resolution.
I am not sure where
should be placed. In vec.h or system.h?