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++/79300] Wrong diagnostics position


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

--- Comment #8 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Fri Jul  7 18:49:09 2017
New Revision: 250058

URL: https://gcc.gnu.org/viewcvs?rev=250058&root=gcc&view=rev
Log:
libcpp: preserve ranges within macro expansions (PR c++/79300)

gcc/testsuite/ChangeLog:
        PR c++/79300
        * g++.dg/diagnostic/pr79300.C: New test case.

libcpp/ChangeLog:
        PR c++/79300
        * line-map.c (linemap_macro_loc_to_def_point): Preserve range
        information for macro expansions by delaying resolving ad-hoc
        locations until within the loop.

Added:
    trunk/gcc/testsuite/g++.dg/diagnostic/pr79300.C
Modified:
    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]