[all-commits] [llvm/llvm-project] df9769: [Clang] prevent setting default lexical access spe...

Oleksandr T. via All-commits all-commits at lists.llvm.org
Thu Oct 31 22:13:56 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df9769e14b79048331c33deeda1a93acc9a4a73e
      https://github.com/llvm/llvm-project/commit/df9769e14b79048331c33deeda1a93acc9a4a73e
  Author: Oleksandr T. <oleksandr.tarasiuk at outlook.com>
  Date:   2024-11-01 (Fri, 01 Nov 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/SemaCXX/enum.cpp

  Log Message:
  -----------
  [Clang] prevent setting default lexical access specifier for missing primary declarations (#112424)

This PR resolves a crash triggered by a forward reference to an enum
type in a function parameter list. The fix includes setting `Invalid`
when `TagUseKind` is `Declaration` to ensure correct error handling.

Fixes #112208



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