Re: [PATCH] c: Fix sizeof error recovery [PR117745]

2024-11-27 Thread Marek Polacek
On Wed, Nov 27, 2024 at 10:12:25AM +0100, Jakub Jelinek wrote: > Hi! > > Compilation of the following testcase hangs forever after emitting first > error. The problem is that in one place we just return error_mark_node > directly rather than going through c_expr_sizeof_expr or c_expr_sizeof_type.

[PATCH] c: Fix sizeof error recovery [PR117745]

2024-11-27 Thread Jakub Jelinek
Hi! Compilation of the following testcase hangs forever after emitting first error. The problem is that in one place we just return error_mark_node directly rather than going through c_expr_sizeof_expr or c_expr_sizeof_type. The parsing of the expression could have called record_maybe_used_decl t