Unverified Commit 476f7f65 authored by weltschildkroete's avatar weltschildkroete Committed by GitHub
Browse files

[clang][Sema] Emit more specific diagnostic for auto in lambda before C++14 (#46059) (#68540)



Namely, we specify that `auto` in a lambda parameter is a C++14
extension in the error message, which now reads:

`'auto' not allowed in lambda parameter before C++14`

This does not change the behavior for `decltype(auto)` and `__auto_type`
though.

---------

Co-authored-by: default avatarcor3ntin <corentinjabot@gmail.com>
parent a383b3cc
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment