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

Reply via email to