[Bug c++/99050] [modules] ICE in cpp_directive_only_process on include translation

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 17 09:21:30 GMT 2021


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 <nathan@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.


More information about the Gcc-bugs mailing list