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: [tuples] dereference POINTER_PLUS_EXPR check


On 11/21/07, Aldy Hernandez <aldyh@redhat.com> wrote:
> u_t_c(lhs_type, rhs1_type) fails because it doesn't look far enough
> down, but you're saying it shouldn't.  Is u_t_c wrong then?

No it is correct.  So we have char* = char[]& .  That is incorrect
where are the cast or address expression.

We should get  b = &(*a)[0] + c (or b = &(*a)[c] ).

-- Pinski


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