PATCH: PR objc/18408 (but really a gimplifier fix)
Jason Merrill
jason@redhat.com
Fri Dec 10 23:25:00 GMT 2004
On Thu, 11 Nov 2004 17:34:20 -0800, Ziemowit Laski <zlaski@apple.com> wrote:
> The gimplification process involves stripping useless (to the back-end --
> ObjC does need them!) type conversions, such as NOP_EXPRs. This can be a
> problem if the NOP_EXPR in question is the argument of an INDIRECT_REF
> (e.g., '(*(List_linked*)collection).firstLink'); once the NOP_EXPR is
> removed, the INDIRECT_REF now has a type that is inconsistent with that of
> its (new) operand, leading to an assert failure later on.
Why is this conversion considered useless (and thus stripped)? List and
List_linked certainly seem like different types to me.
Jason
More information about the Gcc-patches
mailing list