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

--- Comment #26 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #25)
> > Nonetheless, as a work-around, you could use:
> >
> >        unsigned int offset = loc->nextc - loc->lb->line;
> >        location = linemap_position_for_loc_and_offset (line_table,
> >                                                        loc->lb->location,
> >                                                        offset));
> >
> > to create a new location_t with the correct column number and use that
> > for the tree it creates.
> 
> Where should this be done?

At some moment, the Fortran FE sets DECL_SOURCE_LOCATION() on a tree, probably
using loc->lb->line. Finding out where this happens probably requires a bit of
debugging.

Reply via email to