C++ PATCH: typedefs breaking conversions
Jason Merrill
jason@cygnus.com
Thu Apr 1 11:02:00 GMT 1999
>>>>> Nathan Sidwell <nathan@acm.org> writes:
> Jason Merrill wrote:
>>
>> This one shouldn't be necessary; TYPE_MAIN_VARIANTs can be compared with
>> ==.
> Then something's gone wrong with TYPE_MAIN_VARIANT. Martin's test case was
> typedef int Int;
> int *p;
> Int *&pr2 = p;
> 'Int *' and 'int *' are the same type (7.1.3/1), so comp_target_types should
> return 1.
Oh, right. TYPE_MAIN_VARIANT only deals with the top level; I should have
remembered that. Go ahead and install your patch.
Jason
More information about the Gcc-patches
mailing list