[all-commits] [llvm/llvm-project] 83164a: [Clang] fix assertion failure in ::template operat...

Serosh via All-commits all-commits at lists.llvm.org
Tue Apr 28 06:13:48 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 83164a43a1eef61f1e0f6078718a68adb21489ee
      https://github.com/llvm/llvm-project/commit/83164a43a1eef61f1e0f6078718a68adb21489ee
  Author: Serosh <janmejayapanda400 at gmail.com>
  Date:   2026-04-28 (Tue, 28 Apr 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Parse/ParseExprCXX.cpp
    A clang/test/Parser/gh186582.cpp

  Log Message:
  -----------
  [Clang] fix assertion failure in ::template operator parsing (#194097)

when parsing an invalid `::template operator`, the parser incorrectly
kept the consumed tokens on error. This caused the token cache to go out
of sync and crash. This patch fixes it by reverting the tokens and
properly returning the error
fixes #186582



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