Richard Guenther <richard.guent...@gmail.com> writes:

>> I guess this has to do with reserved word conflict on "new":
>>
>> <<
>> tree
>> substitute_in_type (tree t, tree f, tree r)
>> {
>>  tree new;
>>>>
>>
>> Do you have some way to deal with this?
>
> Use a non-reserved identifier.  I guess on trunk Ada doesn't build
> with -Wc++-compat, does it?

Interesting.  I've been testing my -Wc++-compat patches with full
bootstraps including Ada, but I just looked at my make log and it does
indeed appear that -Wc++-compat doesn't make it onto the Ada files.

It seems to be because of this line in ada/gcc-interface/Make-lang.in:

ada-warn = $(ADA_CFLAGS) $(WERROR)

The other languages use

DIR-warn = $(STRICT_WARN)

which is what brings in -Wc++-compat.

Ian

Reply via email to