Re: C++ PATCH for c++/86915, ICE with auto[]

2018-08-12 Thread Jason Merrill
OK. On Sun, Aug 12, 2018 at 4:53 AM, Marek Polacek wrote: > This fixes ICE-on-invalid with an array of auto. The problem was that > create_array_type_for_decl got null name, so the error call crashed. We > need to handle this case as elsewhere in the function. > > Bootstrapped/regtested on x86_

C++ PATCH for c++/86915, ICE with auto[]

2018-08-11 Thread Marek Polacek
This fixes ICE-on-invalid with an array of auto. The problem was that create_array_type_for_decl got null name, so the error call crashed. We need to handle this case as elsewhere in the function. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2018-08-11 Marek Polacek PR c++/