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]
Other format: [Raw text]

Re: PATCH RFC: Ensure TREE_TYPE (TYPE_MIN_VALUE (t)) == t


 I'd say that this is a bug in the same way that any other
> direct type comparison is flawed.  I'd suggest that
> 
>   TYPE_MAIN_VARIANT (TREE_TYPE (TYPE_MIN_VALUE (t)))
>     == TYPE_MAIN_VARIANT (t)
> 
> is the correct test.  That certainly handles your typedef case.

I forgot about TYPE_MAIN_VARIANT and you forgot about subtypes!


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