[all-commits] [llvm/llvm-project] a1e543: [clang] Fix consteval operators in template contexts
Mariya Podchishchaeva via All-commits
all-commits at lists.llvm.org
Thu Jun 8 01:36:31 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a1e5430b6adfe0fe19d831ab719fbec05b2cf5b7
https://github.com/llvm/llvm-project/commit/a1e5430b6adfe0fe19d831ab719fbec05b2cf5b7
Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
Date: 2023-06-08 (Thu, 08 Jun 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/TreeTransform.h
A clang/test/SemaCXX/consteval-operators.cpp
M clang/test/SemaCXX/overloaded-operator.cpp
Log Message:
-----------
[clang] Fix consteval operators in template contexts
Clang used to reject consteval operators if they're used inside a
template due to TreeTransform putting two different `DeclRefExpr`
expressions for the same reference of the same operator declaration into
`ReferenceToConsteval` set.
It seems there was an attempt to not rebuild the whole operator that
never succeeded, so this patch just removes this attempt and
problemating referencing of a `DeclRefExpr` that always ended up
discarded.
Fixes https://github.com/llvm/llvm-project/issues/62886
Reviewed By: cor3ntin
Differential Revision: https://reviews.llvm.org/D151553
More information about the All-commits
mailing list