[clang] [clang] return type not correctly deduced for discarded lambdas (PR #153921)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 15 22:16:06 PDT 2025


mizvekov wrote:

Yes the correct behavior for return type deduction for a function with no non-discarded return statements is for it to be deduced as void: https://godbolt.org/z/qaYebb5q9

https://github.com/llvm/llvm-project/pull/153921


More information about the cfe-commits mailing list