Re: [PATCH] c++: ICE with invalid structured bindings [PR107276]

2022-10-24 Thread Jason Merrill via Gcc-patches
On 10/21/22 19:29, Marek Polacek wrote: This test ICEs in C++23 because we reach the new code in do_auto_deduction: 30468 if (cxx_dialect >= cxx23 30469 && context == adc_return_type 30470 && (!AUTO_IS_DECLTYPE (auto_node) 30471 || !unparenthesized_id_or_class_member_acce

[PATCH] c++: ICE with invalid structured bindings [PR107276]

2022-10-21 Thread Marek Polacek via Gcc-patches
This test ICEs in C++23 because we reach the new code in do_auto_deduction: 30468 if (cxx_dialect >= cxx23 30469 && context == adc_return_type 30470 && (!AUTO_IS_DECLTYPE (auto_node) 30471 || !unparenthesized_id_or_class_member_access_p (init)) 30472 && (r = treat_lva