[all-commits] [llvm/llvm-project] 3cb480: [C++20] Fix crash with invalid concept requirement...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Wed May 7 09:40:02 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3cb480b1bd8c3a368c33e180483178309c9ca753
      https://github.com/llvm/llvm-project/commit/3cb480b1bd8c3a368c33e180483178309c9ca753
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-05-07 (Wed, 07 May 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Parse/ParseExprCXX.cpp
    M clang/test/SemaCXX/concept-crash-on-diagnostic.cpp

  Log Message:
  -----------
  [C++20] Fix crash with invalid concept requirement (#138877)

We were previously recovering a bit too hard; consumeClose() would skip
to a recovery point, then we would call skipToEnd() to skip to another
recovery point. Needless to say, the follow-on diagnostics were not
great. But also, follow-on diagnostics were crashing due to unexpected
null constraint expressions.

Now we only recover once.

Fixes #138820



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list