[all-commits] [llvm/llvm-project] 22fef0: [clang] Avoid inheriting [[noreturn]] in explicit ...

Samarth Narang via All-commits all-commits at lists.llvm.org
Wed Jul 23 18:04:26 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22fef005225b129d73ade4ed995fc0ec0c7be044
      https://github.com/llvm/llvm-project/commit/22fef005225b129d73ade4ed995fc0ec0c7be044
  Author: Samarth Narang <70980689+snarang181 at users.noreply.github.com>
  Date:   2025-07-24 (Thu, 24 Jul 2025)

  Changed paths:
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/SemaCXX/wreturn-always-throws.cpp

  Log Message:
  -----------
  [clang] Avoid inheriting [[noreturn]] in explicit function template specializations (#150003)

This patch fixes incorrect behavior in Clang where [[noreturn]] (either
spelled or inferred) was being inherited by explicit specializations of
function templates or member function templates, even when those
specializations returned normally.

Follow up on https://github.com/llvm/llvm-project/pull/145166



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