https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69543

--- Comment #9 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to David Malcolm from comment #8)
> The following testcases still have xfails:
>   c-c++-common/pr69543-3.c
>   c-c++-common/pr69543-4.c
> so this isn't quite fixed yet.

These XFAILs are fixed (for both C and C++) by deleting these lines within
tree-ssa-uninit.c:warn_uninit:

175       location = linemap_resolve_location (line_table, location,
176                                            LRK_SPELLING_LOCATION, NULL);

so that the location used for the warning retains any virtual location, rather
than flattening it to the physical location.  Am not yet sure of the impact of
such a change.

Reply via email to