Commit eca8134
committed
[clang] return type not correctly deduced for discarded lambdas
The early return for lamda expressions with deduced return types
in Sema::ActOnCapScopeReturnStmt meant that we were not actually
perform the required return type deduction for such lambdas when
in a discarded context.
This PR removes that early return allowing the existing return
type deduction steps to be performed.
Fixes #GH1538841 parent 76d993b commit eca8134
File tree
2 files changed
+16
-2
lines changed- clang
- lib/Sema
- test/CXX/stmt.stmt/stmt.select/stmt.if
2 files changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3533 | 3533 | | |
3534 | 3534 | | |
3535 | 3535 | | |
3536 | | - | |
3537 | | - | |
3538 | 3536 | | |
3539 | 3537 | | |
3540 | 3538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
242 | 258 | | |
243 | 259 | | |
0 commit comments