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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

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

commit r10-9469-ga7237df0aa26f74cc52103f5c8dba5f0efbb198f
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Fri Feb 12 09:55:46 2021 +0100

    c++: Fix endless errors on invalid requirement seq [PR97742]

    As the testcase shows, if we reach CPP_EOF during parsing of requirement
    sequence, we end up with endless loop where we always report invalid
    requirement expression, don't consume any token (as we are at eof) and
    repeat.

    This patch stops the loop when we reach CPP_EOF.

    2021-02-12  Jakub Jelinek  <ja...@redhat.com>

            PR c++/97742
            * parser.c (cp_parser_requirement_seq): Stop iterating after
reaching
            CPP_EOF.

            * g++.dg/cpp2a/concepts-requires24.C: New test.

    (cherry picked from commit cf059e1c099ed45c97f740c030dcb8e146ac7d4a)
  • [Bug c++/97742] [10 Regression]... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to