Re: [Patch] OpenMP/C++: Avoid ICE for BIND_EXPR with empty BIND_EXPR_BLOCK [PR120413]

2025-05-26 Thread Tobias Burnus
Jakub Jelinek wrote: There is also BIND_EXPR_VARS, dunno if that should be walked instead or in addition. The usage is to ensure that variables are mapped with lambdas (→ closure_vars_accessed.add (…)) but not if they are local variables (→ data->local_decls.add (var)). The 'closure_vars_ac

Re: [Patch] OpenMP/C++: Avoid ICE for BIND_EXPR with empty BIND_EXPR_BLOCK [PR120413]

2025-05-23 Thread Jakub Jelinek
On Fri, May 23, 2025 at 11:10:46AM +0200, Tobias Burnus wrote: > OpenMP/C++: Avoid ICE for BIND_EXPR with empty BIND_EXPR_BLOCK [PR120413] > > PR c++/120413 > > gcc/cp/ChangeLog: > > * semantics.cc (finish_omp_target_clauses_r): Handle > BIND_EXPR with empty BIND_EXPR_BLOCK. >

[Patch] OpenMP/C++: Avoid ICE for BIND_EXPR with empty BIND_EXPR_BLOCK [PR120413]

2025-05-23 Thread Tobias Burnus
This fixes a GCC 12-to-16 Regression related to an unexpected empty BIND_EXPR_BLOCK, where nonetheless aBIND_EXPR exists - just by not walking the hence non-existing variables binding to that block. Any comments before I commit this to mainline? I also intent to backport it relatively soonish to