On Mon, Sep 7, 2015 at 2:39 PM, Ilya Enkovich <enkovich....@gmail.com> wrote: > 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
Err - that's because fields should also have a 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