Re: [C++ PATCH] Fix ICE with class fields with invalid types (PR c++/77626)

2016-09-20 Thread Jason Merrill
OK. On Mon, Sep 19, 2016 at 5:57 PM, Jakub Jelinek wrote: > Hi! > > layout_class_type for FIELD_DECLs with error_mark_node skips further > processing, so such fields don't have DECL_FIELD_OFFSET and > DECL_FIELD_BIT_OFFSET, thus byte_position ICEs on it. > > So, when we walk in

[C++ PATCH] Fix ICE with class fields with invalid types (PR c++/77626)

2016-09-19 Thread Jakub Jelinek
Hi! layout_class_type for FIELD_DECLs with error_mark_node skips further processing, so such fields don't have DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET, thus byte_position ICEs on it. So, when we walk in constexpr handling all FIELD_DECLs, this patch fixes it by skipping over fields with