http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935

--- Comment #9 from Dodji Seketeli <dodji at gcc dot gnu.org> ---
Author: dodji
Date: Tue Jan 28 15:03:19 2014
New Revision: 207195

URL: http://gcc.gnu.org/viewcvs?rev=207195&root=gcc&view=rev
Log:
PR preprocessor/59935 - caret diagnostics crashes on non-file locations

gcc/ChangeLog

    * input.c (location_get_source_line): Bail out on when line number
    is zero, and test the return value of
    lookup_or_add_file_to_cache_tab.

gcc/testsuite/ChangeLog

    * c-c++-common/cpp/warning-zero-location.c: New test.
    * c-c++-common/cpp/warning-zero-location-2.c: Likewise.

Signed-off-by: Dodji Seketeli <do...@seketeli.org>

Added:
    trunk/gcc/testsuite/c-c++-common/cpp/warning-zero-location-2.c
    trunk/gcc/testsuite/c-c++-common/cpp/warning-zero-location.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/input.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to