[all-commits] [llvm/llvm-project] 55f1b9: [Clang] Fix a crash when parsing an invalid `declt...

Corentin Jabot via All-commits all-commits at lists.llvm.org
Tue Jul 15 09:10:14 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55f1b91d50a0f3706ad62d497d3c8a5ec572d59e
      https://github.com/llvm/llvm-project/commit/55f1b91d50a0f3706ad62d497d3c8a5ec572d59e
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    M clang/lib/Parse/ParseDeclCXX.cpp
    A clang/test/Parser/gh114815.cpp

  Log Message:
  -----------
  [Clang] Fix a crash when parsing an invalid `decltype` (#148798)

We would try to exact an annotated token before checking if it was
valid, leading to a crash when `decltype` was the only token that was
parsed (which can happen in the absense of opening paren)

Fixes #114815



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