[all-commits] [llvm/llvm-project] 3c3e7e: [Clang] disallow selectany on non-global-variable ...

Oleksandr Tarasiuk via All-commits all-commits at lists.llvm.org
Wed May 6 10:09:09 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c3e7e0784befd7b80a7fe265a3e4eb7e7e12d2f
      https://github.com/llvm/llvm-project/commit/3c3e7e0784befd7b80a7fe265a3e4eb7e7e12d2f
  Author: Oleksandr Tarasiuk <oleksandr.tarasiuk at outlook.com>
  Date:   2026-05-06 (Wed, 06 May 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/Misc/pragma-attribute-supported-attributes-list.test
    M clang/test/Sema/attr-selectany.c
    M clang/test/SemaCXX/attr-selectany.cpp
    M clang/test/SemaCXX/declspec-selectany.cpp

  Log Message:
  -----------
  [Clang] disallow selectany on non-global-variable declarations (#189641)

Fixes #189141

--- 

This PR prevents a crash by disallowing the use of the `selectany`
attribute in global variable declarations.



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