[Bug preprocessor/36674] #include location is offset by one row in errors from preprocessed files
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed May 13 23:18:00 GMT 2009
------- Comment #2 from manu at gcc dot gnu dot org 2009-05-13 23:18 -------
Subject: Bug 36674
Author: manu
Date: Wed May 13 23:17:55 2009
New Revision: 147504
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147504
Log:
2009-05-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR cpp/36674
libcpp/
* directives (do_linemarker): Compensate for the increment in
location that occurs when we reach the end of line.
* files (_cpp_stack_include): Mention _cpp_find_file in the
comment.
testsuite/
* gcc.dg/cpp/pr36674.i: New.
Added:
trunk/gcc/testsuite/gcc.dg/cpp/pr36674.i
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libcpp/ChangeLog
trunk/libcpp/directives.c
trunk/libcpp/files.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36674
More information about the Gcc-bugs
mailing list