[Bug preprocessor/78169] internal compiler error: in get_substring_ranges_for_loc, at input.c:1379

dmalcolm at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 29 21:22:00 GMT 2016


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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

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

--- Comment #6 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing this.

The final part of the error message in comment #0 is this:

  internal compiler error: in get_substring_ranges_for_loc, at input.c:1379

I think that this is a dup of PR 78569.

Line 1379 of input.c was:

1379       gcc_assert (line_width >= (start.column - 1 + literal_length));

https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/input.c;hb=f9f267593af83bc4b4327294ae00a4b77955f295

until r242667 where it moved to line 1388 (as seen in PR 78569):

1388       gcc_assert (line_width >= (start.column - 1 + literal_length));

https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/input.c;hb=8df44fbf7f4788ef56a3b792cbb833b654392d7c

so I think both bugs are the same assertion firing.

In both cases, I think what we're seeing is an issue where the .i file is
out-of-sync with the .c file; perhaps the .c file got edited after the .i file
was written?

I'm working on a fix.


More information about the Gcc-bugs mailing list