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

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Fri Apr 27 23:00:00 GMT 2007


 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!



More information about the Gcc-patches mailing list