[C++ PATCH] Don't ICE on TYPE_BINFO (PR c++/59111)

2013-12-20 Thread Marek Polacek
We ICEd on invalid testcases with auto, because lookup_conversions got template_type_parm as a parameter and the TYPE_BINFO didn't like it. Fixed by checking for RECORD_OR_UNION_TYPE_P first. Regtested/bootstrapped on x86_64-linux, ok for trunk? 2013-12-20 Marek Polacek pola...@redhat.com

Re: [C++ PATCH] Don't ICE on TYPE_BINFO (PR c++/59111)

2013-12-20 Thread Jason Merrill
On 12/20/2013 09:29 AM, Marek Polacek wrote: We ICEd on invalid testcases with auto, because lookup_conversions got template_type_parm as a parameter and the TYPE_BINFO didn't like it. Fixed by checking for RECORD_OR_UNION_TYPE_P first. Use CLASS_TYPE_P instead. OK with that change. Jason