[all-commits] [llvm/llvm-project] 0233a1: [Clang][Lex] Fix parsing of nested requirement to ...
Shafik Yaghmour via All-commits
all-commits at lists.llvm.org
Wed Nov 29 21:03:45 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0233a1306b240850cbf9f4783a20c36f967d9697
https://github.com/llvm/llvm-project/commit/0233a1306b240850cbf9f4783a20c36f967d9697
Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
Date: 2023-11-29 (Wed, 29 Nov 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Parse/ParseExprCXX.cpp
M clang/test/Parser/cxx2a-concepts-requires-expr.cpp
Log Message:
-----------
[Clang][Lex] Fix parsing of nested requirement to prevent flowing off the end of token stream (#73691)
Currently when parsing a nested requirement we attempt to balance parens
if we have a parameter list. This will fail in some cases of ill-formed
code and keep going until we fall off the token stream and crash. This
fixes the hand parsing by using SkipUntil which will properly flag if we
don't find the expected tokens.
Fixes: https://github.com/llvm/llvm-project/issues/73112
More information about the All-commits
mailing list