-
- Downloads
[Clang] Remove the special-casing for RequiresExprBodyDecl in...
[Clang] Remove the special-casing for RequiresExprBodyDecl in BuildResolvedCallExpr() after fd87d765 (#111277) The special-casing for RequiresExprBodyDecl caused a regression, as reported in #110785. The original fix for #84020 has been superseded by fd87d765, which establishes a `DependentScopeDeclRefExpr` instead of a `CXXDependentScopeMemberExpr` for the case in issue. So the spurious diagnostic in #84020 would no longer occur. This also merges the test for #84020 together with that for #110785 into clang/test/SemaTemplate/instantiate-requires-expr.cpp. No release note because I think this merits a backport. Fixes #110785 (cherry picked from commit 8c1547055eaf65003f3e6fd024195f4926ff2356)
Showing
- clang/lib/Sema/SemaExpr.cpp 1 addition, 2 deletionsclang/lib/Sema/SemaExpr.cpp
- clang/lib/Sema/TreeTransform.h 1 addition, 1 deletionclang/lib/Sema/TreeTransform.h
- clang/test/SemaCXX/PR84020.cpp 0 additions, 23 deletionsclang/test/SemaCXX/PR84020.cpp
- clang/test/SemaTemplate/instantiate-requires-expr.cpp 31 additions, 0 deletionsclang/test/SemaTemplate/instantiate-requires-expr.cpp
clang/test/SemaCXX/PR84020.cpp
deleted
100644 → 0
Please register or sign in to comment