Re: [C PATCH] Don't ICE on invalid code (PR c/63549)

2014-10-16 Thread Jeff Law
On 10/16/14 14:12, Marek Polacek wrote: We ICEd on this invalid testcase because build_array_ref was getting a decl with an incomplete type as an index, and default_conversion calls require_complete_type on it - and because it's not complete, it returns error_mark_node, and then we trip on an ass

[C PATCH] Don't ICE on invalid code (PR c/63549)

2014-10-16 Thread Marek Polacek
We ICEd on this invalid testcase because build_array_ref was getting a decl with an incomplete type as an index, and default_conversion calls require_complete_type on it - and because it's not complete, it returns error_mark_node, and then we trip on an assert requiring it to be an integer type. Fi