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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot 
gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think the issue is here:
                      /* This is a kludge.  We want to have the ISO
                         preprocessor lex the next token.  */
                      pfile->buffer->cur = cur;

We don't set up `buffer->rlimit`, `buffer->line_base`, nor `buffer->need_line`
correctly. Which is why the line is off by 1 and the column is off by 2.
I think I Have a fix for this.

Reply via email to