[all-commits] [llvm/llvm-project] b9941d: Fix a rejects-valid with consteval on overloaded o...
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Thu Oct 14 11:47:51 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b9941de0bfac4bad93e11dff26396e34a53e3891
https://github.com/llvm/llvm-project/commit/b9941de0bfac4bad93e11dff26396e34a53e3891
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2021-10-14 (Thu, 14 Oct 2021)
Changed paths:
M clang/lib/Sema/SemaOverload.cpp
M clang/test/SemaCXX/cxx2a-consteval.cpp
Log Message:
-----------
Fix a rejects-valid with consteval on overloaded operators
It seems that Clang 11 regressed functionality that was working in
Clang 10 regarding calling a few overloaded operators in an immediate
context. Specifically, we were not checking for immediate invocations
of array subscripting and the arrow operators, but we properly handle
the other overloaded operators.
This fixes the two problematic operators and adds some test coverage to
show they're equivalent to calling the operator directly.
This addresses PR50779.
More information about the All-commits
mailing list