Re: [C++ PATCH] Fix a structured binding ICE (PR c++/83958)

2018-01-23 Thread Nathan Sidwell
On 01/22/2018 06:06 PM, Jakub Jelinek wrote: Hi! I've recently added the complete_type call in case the structured binding is a reference to a type that needs to be instantiated. This testcase shows a problem where it can't be instantiated and we ICE because we don't expect an incomplete type.

[C++ PATCH] Fix a structured binding ICE (PR c++/83958)

2018-01-22 Thread Jakub Jelinek
Hi! I've recently added the complete_type call in case the structured binding is a reference to a type that needs to be instantiated. This testcase shows a problem where it can't be instantiated and we ICE because we don't expect an incomplete type. If decl isn't a reference, cp_finish_decl for i