This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/83448] [7 Regression] ice in get_source_location_for_substring, at input.c:1507


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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 22 08:54:26 2017
New Revision: 255972

URL: https://gcc.gnu.org/viewcvs?rev=255972&root=gcc&view=rev
Log:
        Backported from mainline
        2017-12-21  Jakub Jelinek  <jakub@redhat.com>

        PR c/83448
        * gimple-ssa-sprintf.c (maybe_warn): Don't call set_caret_index
        if navail is >= dir.len.

        * gcc.c-torture/compile/pr83448.c: New test.
        * gcc.dg/tree-ssa/builtin-snprintf-warn-4.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/compile/pr83448.c
   
branches/gcc-7-branch/gcc/testsuite/gcc.dg/tree-ssa/builtin-snprintf-warn-4.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/gimple-ssa-sprintf.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]