2015-09-02 15:35 GMT+03:00 Richard Biener <richard.guent...@gmail.com>:
>
> DECL_FIELD_BIT_OFFSET should be never NULL.  Whoever created that
> FIELD_DECL created an invalid one.
>
> Richard.
>

layout_class_type doesn't place fields with no type and thus we have
nothing for DECL_FIELD_BIT_OFFSET. We still continue compilation and
function parameters gimplification causes a call to
chkp_find_bound_slots_1 which tries to access. So probably I should
handle gracefully fields with error_mark_node as a type? Or we better
put something into DECL_FIELD_BIT_OFFSET (zero? error_mark_node?) for
such fields.

Ilya

Reply via email to