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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Nathaniel Shead
<nsh...@gcc.gnu.org>:

https://gcc.gnu.org/g:f400d065a2ecda19b46fc0f7ec0a1fe6d7dd597e

commit r14-11221-gf400d065a2ecda19b46fc0f7ec0a1fe6d7dd597e
Author: Nathaniel Shead <nathanielosh...@gmail.com>
Date:   Fri Dec 20 22:09:39 2024 +1100

    c++: Allow pragmas in NSDMIs [PR118147]

    This patch removes the (unnecessary) CPP_PRAGMA_EOL case from
    cp_parser_cache_defarg, which currently has the result that any pragmas
    in the NSDMI cause an error.

            PR c++/118147

    gcc/cp/ChangeLog:

            * parser.cc (cp_parser_cache_defarg): Don't error when
            CPP_PRAGMA_EOL.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/nsdmi-defer7.C: New test.

    Signed-off-by: Nathaniel Shead <nathanielosh...@gmail.com>
    (cherry picked from commit f3ccc57e5f044031a1b07e79330de9220e93afe7)

Reply via email to