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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #2)
> See also pr54224 comment 22 for other examples: Manuel López-Ibáñez wrote
> 
> > You will get a more precise column info (and better location for '^')
> > if Fortran gives a more precise DECL_SOURCE_LOCATION() when generating
> > this tree.
> 

The approach attempted in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54224#c29
could work if care is taken to not generate invalid locations. Also, David has
added new functions to line-map.h to dynamically generate locations.

However, in this case and other cases, the location of the error may be taken
from input_location or from a gimple location and not from
DECL_SOURCE_LOCATION(). 

Moreover, in this case, the bug seems to be caused by the continuation (&).

This seems totally different from the wrong locations in PR54224.

Reply via email to