Currently the following code triggers diagnostics that match:
auto L = []{ }; expected-note{{'' is not literal}}
constexpr int f(decltype(L)) { return 0; } expected-error{{not a literal type}}
After applying this patch the diagnostics match:
auto L = []{ }; //expected-note{{'(lambda at <source-info>)' is not literal}}
As encouraged by Richard during his review of: https://reviews.llvm.org/D22662 .