Closed
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
Type
Projects
Status
Done