e.g.
auto foo() { return no_such_thing; // Return value is a TypoExpr } using T = decltype(foo()); // Uh-oh, undeduced auto.
Paths
| Differential D61649
[Sema] Correct typos in return statements so the return types of 'auto' functions are always deduced. ClosedPublic Authored by sammccall on May 7 2019, 1:14 PM.
Details
Summary e.g. auto foo() { return no_such_thing; // Return value is a TypoExpr } using T = decltype(foo()); // Uh-oh, undeduced auto.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 7 2019, 2:19 PM Closed by commit rL360224: [Sema] Correct typos in return statements so the return types of 'auto'… (authored by sammccall). · Explain WhyMay 7 2019, 10:50 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 198515 lib/Sema/SemaStmt.cpp
test/SemaCXX/typo-correction-crash.cpp
|