[PATCH] D119184: [clang] [concepts] Check constrained-auto return types for void-returning functions
Arthur O'Dwyer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 8 08:34:06 PST 2022
Quuxplusone updated this revision to Diff 406847.
Quuxplusone added a comment.
Update one additional test where the expected output has changed:
auto& f() { }
now produces "can't make a reference to void" instead of "can't deduce `auto&` from no return statements." I think this is a mild regression in diagnostic quality, but I don't immediately see what we should do about it so I'm inclined to take the hit. Suggestions welcome.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119184/new/
https://reviews.llvm.org/D119184
Files:
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaStmt.cpp
clang/test/SemaCXX/deduced-return-type-cxx14.cpp
clang/test/SemaTemplate/concepts.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119184.406847.patch
Type: text/x-patch
Size: 6930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220208/84254848/attachment-0001.bin>
More information about the cfe-commits
mailing list