Page MenuHomePhabricator

[C++20] Add consteval-specifique semantic
Needs ReviewPublic

Authored by Tyker on Jun 28 2019, 3:24 PM.

Details

Reviewers
rsmith
Summary

Changes:

  • Calls to consteval function and constructors are not evaluated as soon as they are reached.
  • Add diagnostic for taking address of a consteval function in non-constexpr context.
  • Add diagnostic for address of consteval function accessible at runtime.
  • Add tests

Serialization and importing depends on https://reviews.llvm.org/D63640

Diff Detail

Event Timeline

Tyker created this revision.Jun 28 2019, 3:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2019, 3:24 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript