-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Closed
Labels
clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerconstevalC++20 constevalC++20 constevalquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Description
Hi all,
I found a case where clang issues a warning about "non-void function does not return a value" for a constexpr function. For constexpr function, clang typically issues an error and no warning.
The code to generate the warning is
template <class...> struct a {};
template <class... b> constexpr a<typename b ::c...> d() {}
auto e = d();
//constexpr int f() {}
Or a link to compiler explorer https://godbolt.org/z/1rd4W8exr
Metadata
Metadata
Assignees
Labels
clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerconstevalC++20 constevalC++20 constevalquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Type
Projects
Status
Done