[clang] False positive: -Wmissing-noreturn triggered on lambdas (original) (raw)

Example:

#include

int main() { auto l = { throw std::runtime_error{"Error."}; }; }

https://godbolt.org/z/zdWdfMdxM

Expectation is to get no warning, since as a user I cannot add [[noreturn]] to the internal operator() of the lambda implementation.