https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116526
--- Comment #12 from Filip Kastl <pheeck at gcc dot gnu.org> --- (In reply to [email protected] from comment #11) > deal > with the case it is removed. Maybe this would work: ``` diff --git a/gcc/coverage.cc b/gcc/coverage.cc index f2a095a1279..2966b8b655c 100644 --- a/gcc/coverage.cc +++ b/gcc/coverage.cc @@ -883,6 +883,10 @@ build_fn_info (const struct coverage_data *data, tree type, tree key) { vec<constructor_elt, va_gc> *ctr = NULL; tree var = data->ctr_vars[ix]; + + if (!symtab_node::get (var)) + continue; + unsigned count = 0; if (var) ``` I'm letting this PR be for today. I'll return to it later this week and figure out if this patch makes sense.
