c++: directives-only preprocessing and include translation [PR 99050]
Nathan Sidwell
nathan@acm.org
Tue Feb 16 20:26:13 GMT 2021
We make sure files end in \n by placing one at the limit of the buffer
(just past the end of what is read). We need to do the same for buffers
generated via include-translation. Fortunately they have space.
libcpp/
* files.c (_cpp_stack_file): Make buffers end in unread \n.
gcc/testsuite/
* g++.dg/modules/pr99050_a.H: New.
* g++.dg/modules/pr99050_b.C: New.
--
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr99050.diff
Type: text/x-patch
Size: 1827 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210216/05a6f265/attachment.bin>
More information about the Gcc-patches
mailing list