Re: [PATCH] c++: ICE with operator delete [PR104846]

2022-03-09 Thread Jason Merrill via Gcc-patches
On 3/9/22 14:09, Marek Polacek wrote: This is an ICE-on-invalid with "auto operator delete[] (void *)" whose return type must be void. The return type is checked in coerce_delete_type but we never got there in this test, because we took the wrong path in grokdeclarator, set type to error_mark_no

[PATCH] c++: ICE with operator delete [PR104846]

2022-03-09 Thread Marek Polacek via Gcc-patches
This is an ICE-on-invalid with "auto operator delete[] (void *)" whose return type must be void. The return type is checked in coerce_delete_type but we never got there in this test, because we took the wrong path in grokdeclarator, set type to error_mark_node, ended up creating a FIELD_DECL with