[Bug preprocessor/103130] [11/12 Regression] \*/ is not detected as the end of a comment with -fdirectives-only since r11-206-gb224c3763e018e8b

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 17 16:32:24 GMT 2021


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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:049f0efeaa77b43a508172161ca040feb6bb5622

commit r12-5340-g049f0efeaa77b43a508172161ca040feb6bb5622
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Nov 17 17:31:40 2021 +0100

    libcpp: Fix up handling of block comments in -fdirectives-only mode
[PR103130]

    Normal preprocessing, -fdirectives-only preprocessing before the Nathan's
    rewrite, and all other compilers I've tried on godbolt treat even \*/
    as end of a block comment, but the new -fdirectives-only handling doesn't.

    2021-11-17  Jakub Jelinek  <jakub@redhat.com>

            PR preprocessor/103130
            * lex.c (cpp_directive_only_process): Treat even \*/ as end of
block
            comment.

            * c-c++-common/cpp/dir-only-9.c: New test.


More information about the Gcc-bugs mailing list