[all-commits] [llvm/llvm-project] ddfa5e: [Sema] Fix assertion crash on section conflict wit...

lijinpei-amd via All-commits all-commits at lists.llvm.org
Fri Jun 5 05:51:01 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ddfa5eb8ae2e0cdd1c0542fff9c6671b8b3ff85c
      https://github.com/llvm/llvm-project/commit/ddfa5eb8ae2e0cdd1c0542fff9c6671b8b3ff85c
  Author: lijinpei-amd <jinpli at amd.com>
  Date:   2026-06-05 (Fri, 05 Jun 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaAttr.cpp
    M clang/test/SemaCXX/attr-section.cpp

  Log Message:
  -----------
  [Sema] Fix assertion crash on section conflict with a non-identifier decl (#200873)

NamedDecl::getName() asserts the name is a simple identifier, so
UnifySection crashed when the conflicting section decl had a special
name such as a lambda's call operator.

Drop the argument: `note_declared_at` has no format placeholder, so it
was dead code. The error already prints the section decl.

Fixes https://github.com/llvm/llvm-project/issues/192264



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