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/66415] [6 Regression] ice in location_column_from_byte_offset


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

--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Jun  8 15:16:12 2015
New Revision: 224236

URL: https://gcc.gnu.org/viewcvs?rev=224236&root=gcc&view=rev
Log:
        PR c/66415
        * c-format.c (location_from_offset): Return LOC if LINE is null.

        * line-map.c (linemap_position_for_loc_and_offset): Remove
        linemap_assert_fails; reverse conditions.

        * gcc.dg/cpp/pr66415-1.c: New test.
        * gcc.dg/cpp/pr66415-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/cpp/pr66415-1.c
    trunk/gcc/testsuite/gcc.dg/cpp/pr66415-2.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-format.c
    trunk/gcc/testsuite/ChangeLog
    trunk/libcpp/ChangeLog
    trunk/libcpp/line-map.c


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