Prior to this fix, constrained decltype(auto) behaves exactly the same
as constrained regular auto.
This fixes it so it deduces like decltype(auto).
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Paths
| Differential D98087
[clang] Fix constrained decltype(auto) deduction ClosedPublic Authored by mizvekov on Mar 5 2021, 3:51 PM.
Details Summary Prior to this fix, constrained decltype(auto) behaves exactly the same Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Diff Detail
Unit TestsFailed Event TimelineComment Actions Looks good, thanks!
This revision is now accepted and ready to land.Mar 5 2021, 3:57 PM Comment Actions Added new tests as suggested by rsmith. By the way, I still need help commiting this. Comment Actions Turns out someone had already reported this bug. This change puts "PR48384" in the new tests. mizvekov added a child revision: D98095: [clang] Fix ICE on invalid type parameters for concepts.Mar 5 2021, 6:14 PM This revision was landed with ongoing or failed builds.Mar 5 2021, 6:20 PM Closed by commit rG71e6e82746ca: [clang] Fix constrained decltype(auto) deduction (authored by mizvekov, committed by rsmith). · Explain Why This revision was automatically updated to reflect the committed changes. mizvekov removed a child revision: D98095: [clang] Fix ICE on invalid type parameters for concepts.Mar 7 2021, 1:02 PM
Revision Contents
Diff 328676 clang/lib/Sema/SemaType.cpp
clang/test/CXX/dcl/dcl.fct/p17.cpp
clang/test/CXX/dcl/dcl.spec/dcl.type/dcl.spec.auto/p6.cpp
clang/test/Parser/cxx2a-placeholder-type-constraint.cpp
|
For completeness, it'd be nice to test the decltype((...)) case too.