[all-commits] [llvm/llvm-project] 087cb2: [clang] Avoid inheriting [[noreturn]] in explicit ...
Samarth Narang via All-commits
all-commits at lists.llvm.org
Tue Aug 5 01:55:03 PDT 2025
Branch: refs/heads/release/21.x
Home: https://github.com/llvm/llvm-project
Commit: 087cb2e91c5b276531b617781974e76145b7da0f
https://github.com/llvm/llvm-project/commit/087cb2e91c5b276531b617781974e76145b7da0f
Author: Samarth Narang <70980689+snarang181 at users.noreply.github.com>
Date: 2025-08-05 (Tue, 05 Aug 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
(cherry picked from commit 22fef005225b129d73ade4ed995fc0ec0c7be044)
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