[PATCH] D85933: Don't track consteval references for dependent members

Wyatt Childers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 13 13:55:09 PDT 2020


wchilders created this revision.
wchilders added reviewers: Tyker, rsmith.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
wchilders requested review of this revision.

Previously dependent references to consteval (`ReferenceToConsteval`) were tracked, and dependent expressions were evaluated as possible immediate invocations.

This resulted in the evaluation of value dependent expressions.

This patch also suppresses duplicated diagnostics in debug builds while working with templates caused by the side effects of `FixOverloadedFunctionReference`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85933

Files:
  clang/lib/Sema/SemaExpr.cpp
  clang/lib/Sema/SemaOverload.cpp
  clang/test/SemaCXX/cxx2a-consteval.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85933.285480.patch
Type: text/x-patch
Size: 5343 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200813/b538f0b9/attachment.bin>


More information about the cfe-commits mailing list