https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99050
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- https://gcc.gnu.org/g:b37695c9bf101a3a30a231cfeb6da7a6c17657d6 commit r11-7260-gb37695c9bf101a3a30a231cfeb6da7a6c17657d6 Author: Nathan Sidwell <nat...@acm.org> Date: Tue Feb 16 12:23:12 2021 -0800 c++: directives-only preprocessing and include translation [PR 99050] 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.